server {
listen 80;
server_name www.pluto.com;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080;
}
}
I need that the URL request from any combination of FOLDER1 (case
insensitive) is rewrite from URL
although you probably want more directives in there too.
Note that, while this does work in a test system, it might be contrary
to the documentation at Module ngx_http_proxy_module, so it may not
work forever. I think that the fact that the regex matches the complete
request uri probably means that it is ok, though.