diff --git a/organizr-auth.subfolder.conf.sample b/organizr-auth.subfolder.conf.sample index 60c9725..849b264 100644 --- a/organizr-auth.subfolder.conf.sample +++ b/organizr-auth.subfolder.conf.sample @@ -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; diff --git a/organizr.subdomain.conf.sample b/organizr.subdomain.conf.sample index d92b2bb..496af32 100644 --- a/organizr.subdomain.conf.sample +++ b/organizr.subdomain.conf.sample @@ -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; } diff --git a/organizr.subfolder.conf.sample b/organizr.subfolder.conf.sample index 8a0bba0..4cad9f2 100644 --- a/organizr.subfolder.conf.sample +++ b/organizr.subfolder.conf.sample @@ -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;