Installing the Reverse Proxy site extension

I recently created the Reverse Proxy site extension which configures your Azure WebApp to act as a reverse proxy and forward web request to other URL’s based on the incoming request URL path.

The extension enables the proxy in the applicationhost.config file of your WebApp. You can configure the proxy by adding rewrite rules in your web.config file.

To enable this extension on your webapp, go to the new portal (portal.azure.com) and find the webapp you would like to extend.

Click on “All settings” and select “Extensions”

Reverse Proxy Site Extension install

Click on the “Add” button and select the ReverseProxy site extension.

Select Reverse Proxy site extension

After accepting the legal terms (don’t worry its open source) the extension will be installed.
Reverse Proxy site extension installed

Clicking on the “Browse” button will open the ReverseProxy page of your site, where you can add or edit the proxy rules. This page is just a first step. I hope to create a better experience in the near future. Because you’re already logged in to the azure portal you don’t need to login again for this page.
Reverse Proxy create rules

If your site doesn’t have a web.config yet, it will automatically create one with the above example. This example adds a virtual “ch9″ folder to your site and the content in this folder will be pulled from the channel9 site. (This is just a simple example, a lot of links in the channel9 site will not work. See github documentation for more advanced examples).

If you already have a web.config, the site extension will not mess with it until you put in a rule and click the “Save to web.config” button.

You can find more examples of rewrite rules on the GitHub page of this site extension: https://github.com/EelcoKoster/ReverseProxySiteExtension/blob/master/README.md

More details about IIS and Reverse Proxy can be found here.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>