蜘蛛侠站群_站群程序_D58.NET站群系统

D58.NET站群主程序加模块化的站群系统,为您提供各类快速建站群程序,程序购买联系QQ4 7 8 1 3 3 5。

windows2008 IIS7配置反向代理目录的方法

No Comments | 分享技术 | by 冬筠 | 9752 Views. | 2018-02-05, 12:51 AM

如何应用Application Request Routing在IIS7配置反向代理


首先前往https://www.iis.net/downloads/microsoft/application-request-routing下载Application Request Routing,然后安装
安装完后在IIS管理界面找到ARR配置菜单:Application Request Routing
点击右测开启Proxy项:server proxy settings..
打开配置界面 在Enable proxy前面打勾保存


在站点下建立web.config保存代码

iis7全站反向代理设置

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="fxdl" stopProcessing="true">
                    <match url="^(.*)" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="(.*)" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="http://www.d58.net/{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>


iis7二级目录反向代理设置

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="fxdl" stopProcessing="true">
                    <match url="^abc(.*)" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="(.*)" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="http://www.d58.net/abc{R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

上一篇: Apache设置反向代理目录的方法
下一篇: d58.net站群模块更新发布[20180429总结]

目前还没有人评论,您发表点看法?
发表评论