如何创建在Azure中运行的反向代理? [英] How do I create a reverse proxy that runs in Azure?

查看:259
本文介绍了如何创建在Azure中运行的反向代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个静态的Word preSS的网站,我们希望能够扩展特设的。

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

在长远来看,我们将移动网站如。一把umbraco CMS,但现在我们想放在一个反向代理服务器的前端,是以当前站点的负载。

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.

我们已经尝试写出自己的HttpHandler的(像这样的 HTTP://www.$c$cproject.com/KB/web-security/HTT$p$pverseProxy.aspx ),但我们希望有一个更强大的解决方案来处理高速缓存开箱,HTTP重定向(301,302)等。

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.

我们希望能够在一个标准的Azure WebRole举办这个,所以我们可以旋转起来的许多角色需要....也就是说,应该在web.config中或通过使用小型简单的启动配置任务(* .cmd文件)。

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?

推荐答案

您可以使用应用程序请求路由(ARR)。看看这里:

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

http://things.smarx.com/#Install 应用程序请求路由

同时还要注意史蒂夫如何配置它作为从MIX他的谈话反向代理:

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

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

这篇关于如何创建在Azure中运行的反向代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆