mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #420 from YunoHost/fix-1034-nginx-traversal
Fix 1037 nginx traversal
This commit is contained in:
commit
971a2b06b5
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
location /yunohost/admin {
|
# Avoid the nginx path/alias traversal weakness ( #1037 )
|
||||||
|
rewrite ^/yunohost/admin$ /yunohost/admin/ permanent;
|
||||||
|
|
||||||
|
location /yunohost/admin/ {
|
||||||
alias /usr/share/yunohost/admin/;
|
alias /usr/share/yunohost/admin/;
|
||||||
default_type text/html;
|
default_type text/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
Loading…
Add table
Reference in a new issue