1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

[fix] path traversal

This commit is contained in:
tituspijean 2020-04-06 10:41:51 +02:00
parent 73716beb99
commit fdd21a59a8

View file

@ -1,4 +1,5 @@
location ^~ __PATH__ {
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;