Another thing to try would be to enable debug to your output log.
Add this line to the top of your nginx.conf file and restart NGINX:
error_log /var/log/nginx/error.log debug;
This assumes you have built NGINX with the configure option of --with-debug
Here's the URL to the NGINX docs for convenience:
https://docs.nginx.com/nginx/admin-guide/monitoring/debugging/
On Thu, Mar 30, 2023, 7:16 AM Rick Gutierrez <xserverlinux@gmail.com> wrote:
> Hi list, I have a situation that I want to share, we develop a small
> application in php that has friendly urls, it has a section in English
> and the other in Spanish, but when we put it in the backend server the
> project does not load correctly.
>
> I want to share a bit about the design of our infrastructure:
>
> users =========> Proxy reverse ===========backend server
>
> I've tried different configurations on the backend server and the
> reverse proxy, but still can't get it to load.
>
> For example, in the backend I put this type of application to load:
>
> location /
>
> {
>
> try_files $uri $uri/ /index.php?$args;
> # try_files $uri /index.php;
> root /var/tmp/sites/site.com/htdocs;
> index index.php index.html index.htm;
>
> }
>
>
>
> proxy reverse :
>
> location / {
>
>
> proxy_http_version 1.1;
> proxy_set_header Connection "";
> 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_connect_timeout 900s;
>
> proxy_send_timeout 900s;
>
> proxy_read_timeout 900s;
>
> proxy_buffer_size 64k;
>
> proxy_buffers 16 32k;
>
> proxy_busy_buffers_size 64k;
>
> proxy_redirect off;
>
> proxy_request_buffering off;
>
> proxy_buffering off;
>
> proxy_pass http://backend2;
>
>
> }
>
> I don't see any errors in the log,
>
> any advice?
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx