nginx reverse proxy for space contain url

39 views
Skip to first unread message

Vikas Gupta

unread,
Mar 8, 2019, 2:28:19 AM3/8/19
to Nginx Ultimate Bad Bot Blocker
Hi Guys,
Please help me to find out the way how can i set reverse proxy for space contain url specially when it's having a location path.

the below code is working fine

server {
        listen 443;
        server_name app1.example.com;

        location / {
            proxy_pass http://example.com/$request_uri;
        }
}
But when i keeping app1 in location path it not working at all and getting 401 error.


server {
        listen 443;
        server_name app1.example.com;

        location /app1/ {
            proxy_pass http://example.com/$request_uri;
        }
}
Reply all
Reply to author
Forward
0 new messages