Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Nginx reverse proxy configuration for Azure web portal

$
0
0
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.

Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>