proxy_pass and path with period

angelochen960 nginx-forum at forum.nginx.org
Wed Mar 20 07:57:57 UTC 2019


Hi,

I use proxy_pass to forward everything to a backend:

location / {
    client_max_body_size 4M;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-NginX-Proxy true;
    proxy_pass http://local_app:8080;
    proxy_redirect off;
   }

this works:

  /admin/utilities

  log : GET /admin/utilities HTTP/1.1" 200

this does not work:
 /admin/utilites.my_form
 log: "POST /admin/utilities.my_form HTTP/1.1" 302 0

what should I do to make it work? Thanks,

A.C.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283439,283439#msg-283439



More information about the nginx mailing list