How do I create a reverse proxy that runs in Azure?

风流意气都作罢 提交于 2019-12-13 17:42:49

问题


We have a static WordPress website that we would like to be able to scale ad-hoc.

In the long term we will move the site to eg. Umbraco CMS, but right now we would like to put in an Reverse Proxy frontend that takes the load of the current site.

We have tried writing out own HttpHandler (like this http://www.codeproject.com/KB/web-security/HTTPReverseProxy.aspx), but we want a more robust solutions that handles caching out of the box, HTTP redirects (301, 302) etc.

We would like to be able to host this in a standard Azure WebRole, so we can spin up as many roles as needed.... that is, it should be configurable in web.config or by using a small simple startup task (*.cmd file).

Does anyone know of a solution for this?


回答1:


You can use Application Request Routing (ARR). Take a look here:

http://things.smarx.com/#Install Application Request Routing

Also watch how Steve configured it as a reverse proxy in his talk from MIX:

http://channel9.msdn.com/events/MIX/MIX11/SVC04




回答2:


Also take a look at http://smarxrole.codeplex.com, which does this.



来源:https://stackoverflow.com/questions/6200222/how-do-i-create-a-reverse-proxy-that-runs-in-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!