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;
}
}