1
0
Fork 0
forked from exozyme/nginx

Fix path traversal via misconfigured alias

This commit is contained in:
Anthony Wang 2021-08-06 10:55:00 -05:00
parent bff7158efa
commit b63589f10c
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -9,7 +9,7 @@ server {
root /srv/http/ta180m;
index index.html;
location /blog {
location /blog/ {
alias /srv/http/ta180m/blog/_site;
}

View file

@ -6,7 +6,7 @@ server {
root /srv/http;
index index.php;
location /zabbix {
location /zabbix/ {
if ($scheme ~ ^http:) {
rewrite ^(.*)$ https://$host$1 permanent;
}