Answer the question
In order to leave comments, you need to log in
How to proxy NGINX if file not found?
Good evening!
How to proxy an NGINX request if the file doesn't exist?
location /public {
root /apps/nodejs/server.ru/production;
# как сделать proxy_pass http://127.0.0.1:1337/generate-img/; , если файла нет?
}
Answer the question
In order to leave comments, you need to log in
nginx.org/ru/docs/http/ngx_http_core_module.html#t...
An example, customize it for yourself.
location / {
try_files /system/maintenance.html
$uri $uri/index.html $uri.html
@mongrel;
}
location @mongrel {
proxy_pass http://mongrel;
}
error_page 404 [email protected]; inside loki with static.
Well, in location @backend { } you already describe how to get into the backend.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question