proxy_pass and path with period

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


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:


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

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

what should I do to make it work? Thanks,


Posted at Nginx Forum:,283439,283439#msg-283439

More information about the nginx mailing list