mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Use host instead of server_name
This commit is contained in:
parent
3a65854339
commit
3517c46c03
3 changed files with 4 additions and 4 deletions
|
@ -32,5 +32,5 @@ location ~ /auth-([0-9]+) {
|
|||
}
|
||||
|
||||
# Optional redirect server authentication errors to organizr authentication page
|
||||
# NOTE: $server_name must be modified to your public URL when using subdomain proxies
|
||||
#error_page 401 $scheme://$server_name/?error=$status&return=$request_uri;
|
||||
# NOTE: $host must be modified to your public URL when using subdomain proxies
|
||||
#error_page 401 $scheme://$host/?error=$status&return=$request_uri;
|
||||
|
|
|
@ -29,6 +29,6 @@ server {
|
|||
}
|
||||
|
||||
# Optional redirect server errors to organizr error pages
|
||||
#error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
|
||||
#error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$host/?error=$status;
|
||||
|
||||
}
|
||||
|
|
|
@ -16,4 +16,4 @@ location / {
|
|||
}
|
||||
|
||||
# Optional redirect server errors to organizr error pages
|
||||
#error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
|
||||
#error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$host/?error=$status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue