Answer the question
In order to leave comments, you need to log in
Why am I getting a 404 error when I should be 50x?
Here is the configuration:
server {
server_name example.com;
location / {
try_files $uri @backend;
}
location @backend {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.1.39:80;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
Answer the question
In order to leave comments, you need to log in
What kind of design is so interesting)) Why not?
location / {
proxy_pass http://192.168.1.39:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question