Skip to content

Commit

Permalink
etc/nginx: fix spy redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Aug 22, 2024
1 parent 43544de commit 54cc8ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions etc/nginx/http.d/webui.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ server {
# spy

location = /static/style.css {
return 301 /assets/css/spy.css;
return 301 $scheme://$http_host/assets/css/spy.css;
}

location = "/static/g15950.svg" {
return 301 /assets/img/empty.svg;
return 301 $scheme://$http_host/assets/img/empty.svg;
}

location ~ ^/user/(.+)$ {
#return 301 /user.php?user=$1
#return 301 /user.php?user=$1;
return 301 /index.php?user=$1;
}

Expand All @@ -92,8 +92,8 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
# error_page 403 404 = @error_4xx;
# error_page 500 502 503 504 = @error_5xx;
# error_page 403 404 = @error_4xx;
# error_page 500 502 503 504 = @error_5xx;
}

}
Expand Down

0 comments on commit 54cc8ce

Please sign in to comment.