重定向域IIS到Apache [英] Redirect domain IIS to Apache

查看:267
本文介绍了重定向域IIS到Apache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IIS服务器监听端口 80 和Apache是​​听 8080

IIS Server is listening Port 80 and Apache is listening 8080

我部署网站上的Apache。

I deployed website on apache.

域名注册IIS服务器上。我怎样才能重定向到从 IIS 调用 Apache服务器。就像如果我键入

Domain name is registered on IIS server. How can I redirect to a call from IIS to Apache server. Like if I type

www.abc.com

www.abc.com

(上IIS),它会重定向Apache服务器上调用网站(端口 8080

(on IIS), it will redirect call to website on Apache server (on port 8080)

我怎么能这样做?

推荐答案

您需要安装IIS上的反向代理,并将其指向Apache服务器。下面是关于如何将它设置博客文章:<一href=\"http://blogs.iis.net/carlosag/archive/2010/04/01/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx\">http://blogs.iis.net/carlosag/archive/2010/04/01/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx

You need to setup a reverse proxy on IIS and point it to the apache server. Here is a blog post about how to set it up: http://blogs.iis.net/carlosag/archive/2010/04/01/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx

它需要设置URL重写和应用程序请求路由。

It requires setting up URL Rewrite and Application Request Routing.

从博客文章摘录:


  1. 您需要做的第一件事是启用ARR代理支持。

  1. The first thing you need to do is enable Proxy support in ARR.


  1. 要做到这一点只要启动IIS管理器,然后单击树视图中的服务器节点。

  2. 双击应用程序请求路由缓存图标

  3. 选择服务器代理设置... 在动作面板中的任务

  4. ,并确保启用代理复选框被标记。这将完成是允许被重写,不是本地机器将被路由到自动正确的地方,没有任何进一步的配置服务器服务器的任何请求。

  1. To do that just launch IIS Manager and click the server node in the tree view.
  2. Double click the "Application Request Routing Cache" icon
  3. Select the "Server Proxy Settings…" task in the Actions panel
  4. And Make sure that "Enable Proxy" checkbox is marked. What this will do is allow any request in the server that is rewritten to a server that is not the local machine will be routed to the right place automatically without any further configuration.

配置URL重写路由正确的文件夹和它们到正确的网站请求。但是,而不是困扰你的用户界面的步骤,我会告诉你的配置,然后解释一步一步每个部分做的。

  • Configure URL Rewrite to route the right folders and their requests to the right site. But rather than bothering you with UI steps I will show you the configuration and then explain step by step what each piece is doing.

    请注意,为了这个职位,我只会照顾公司1的,但你能想象同样的步骤申请Company2的,并测试这个你可以保存为以下web.config中的配置文件并将其保存在你的的Inetpub \\ wwwroot的\\ 或以任何其他网站根目录,你可以对其进行测试。

    Note that for this post I will only take care of Company1, but you can imagine the same steps apply for Company2, and to test this you can just save the configuration file below as web.config and save it in your inetpub\wwwroot\ or in any other site root and you can test it.

    这篇关于重定向域IIS到Apache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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