mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Merge pull request #73 from YunoHost-Apps/tituspijean-patch-alias_traversal
Fix alias_traversal
This commit is contained in:
commit
d57f488b12
1 changed files with 3 additions and 3 deletions
|
@ -10,10 +10,10 @@ location ^~ __PATH__ {
|
|||
|
||||
# Bug in Nginx with locations and aliases (see http://stackoverflow.com/a/35102259 )
|
||||
location __LOCATION_HACK__/ { try_files $uri $uri/ __PATH_HACK__/index.php?$query_string; }
|
||||
location __LOCATION_HACK__/api { try_files $uri $uri/ __PATH_HACK__/api.php?$query_string; }
|
||||
location __LOCATION_HACK__/admin { try_files $uri $uri/ __PATH_HACK__/admin.php?$query_string; }
|
||||
location __LOCATION_HACK__/api/ { try_files $uri $uri/ __PATH_HACK__/api.php?$query_string; }
|
||||
location __LOCATION_HACK__/admin/ { try_files $uri $uri/ __PATH_HACK__/admin.php?$query_string; }
|
||||
|
||||
location __LOCATION_HACK__/flarum {
|
||||
location __LOCATION_HACK__/flarum/ {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue