If not work kopama.com.pl redirect on kopama.pl!

This commit is contained in:
Artur Kuś 2025-09-29 16:51:42 +02:00
parent 21624f9471
commit 28488d6ba0
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,15 @@ server {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
# gdy backend zwróci 502/503/504 przekieruj użytkownika
error_page 502 503 504 = @fallback;
location @fallback {
return 302 https://kopama.pl$request_uri;
}
}
}