The original post: /r/nginx by /u/jjmaximo on 2024-12-04 19:40:22.
Hi
I was working on configuring a locations.conf file for reverse proxy with nginx, however, when one of the services set in locations is turned off/paused in docker, nginx simply stops working and responding, how can I get around this problem, where even the service is off nginx will work/start normally.
I wonder if there is some kind of try-catch that could be used in this case, or something similar.
Last nginx logs before stopping:
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/12/04 19:10:42 [emerg] 1#1: host not found in upstream "microsservico_whatsapp_front" in /etc/nginx/locations.conf:16
nginx: [emerg] host not found in upstream "microsservico_whatsapp_front" in /etc/nginx/locations.conf:16
The location configuration I have set:
location /microsservico_whatsapp_front/ {
proxy_pass http://microsservico_whatsapp_front:7007;
rewrite ^/microsservico_whatsapp_front(.*)$ $1 break;
}
Any suggestions to help me? Please
You must log in or register to comment.