Is there a way to access Azure Web Portal via nginx reverse proxy through my subdomain?
Here is the nginx configuration:
server {
listen localhost:443 ssl;
server_name azure.subdomain.com;
include snippets/proxy_ssl.conf;
location / {
proxy_pass https://portal.azure.com/;
include snippets/proxy.conf;
proxy_redirect off;
proxy_hide_header X-Frame-Options;
}
}
The configuiration w.r.t nginx are working properly.
When we try to access https://azure.subdomain.com it redirects to https://login.microsoftonline.com/common/oauth2/authorize for authentication.
But when we provide valid credential we are thrown Bad Request.
Here is the nginx configuration:
server {
listen localhost:443 ssl;
server_name azure.subdomain.com;
include snippets/proxy_ssl.conf;
location / {
proxy_pass https://portal.azure.com/;
include snippets/proxy.conf;
proxy_redirect off;
proxy_hide_header X-Frame-Options;
}
}
The configuiration w.r.t nginx are working properly.
When we try to access https://azure.subdomain.com it redirects to https://login.microsoftonline.com/common/oauth2/authorize for authentication.
But when we provide valid credential we are thrown Bad Request.