forked from exozyme/nginx
Fix path traversal via misconfigured alias
This commit is contained in:
parent
bff7158efa
commit
b63589f10c
3 changed files with 4 additions and 4 deletions
|
@ -28,11 +28,11 @@ server {
|
|||
return 301 https://social.exozy.me$request_uri;
|
||||
}
|
||||
|
||||
location /howtuwu {
|
||||
location /howtuwu/ {
|
||||
alias /srv/http/exozy.me/howtuwu/public;
|
||||
}
|
||||
|
||||
location /vncws {
|
||||
location /vncws/ {
|
||||
index vnc.html;
|
||||
alias /usr/share/webapps/novnc/;
|
||||
try_files $uri $uri/ /vnc.html;
|
||||
|
|
|
@ -9,7 +9,7 @@ server {
|
|||
root /srv/http/ta180m;
|
||||
index index.html;
|
||||
|
||||
location /blog {
|
||||
location /blog/ {
|
||||
alias /srv/http/ta180m/blog/_site;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ server {
|
|||
root /srv/http;
|
||||
index index.php;
|
||||
|
||||
location /zabbix {
|
||||
location /zabbix/ {
|
||||
if ($scheme ~ ^http:) {
|
||||
rewrite ^(.*)$ https://$host$1 permanent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue