<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    不可不說
    隨心所欲,無往不利!
    posts - 88,  comments - 92,  trackbacks - 0
    (一).ProxyPass 指令

    說明: 將一個遠端服務器映射到本地服務器的URL空間中
    語法: ProxyPass [路徑] !|url
    上下文: 服務器配置, 虛擬主機
    狀態: Extension
    模塊: mod_proxy

    指令對于您不想對某個子目錄進行反向代理時很有用。比如說:

    ProxyPass /mirror/foo/i !
    ProxyPass /mirror/foo http://foo.com

    將會代理除對/mirror/foo/i請求之外的所有對 foo.com 的/mirror/foo請求。

    注意:順序很重要,您需要把特例情況放在一般代理通過指令
    當在<Location>配置段中使用時,第一個參數會被忽略而是采用由<Location>指令指定的本地目錄。

    如果您需要一個更加靈活的反向代理配置,請參見使用[P]標記的RewriteRule指令。


    (二).ProxyPassReverse 指令

    說明: 調整由反向代理服務器發送的HTTP回應頭中的URL
    語法: ProxyPassReverse [路徑] url
    上下文: 服務器配置, 虛擬主機
    狀態: Extension
    模塊: mod_proxy

    此 指令使 Apache 調整HTTP重定向回應中Location, Content-Location和URI頭里的URL。 HTTP redirect responses. This is essential when Apache is used as a reverse proxy to avoid by-passing the reverse proxy because of HTTP redirects on the backend servers which stay behind the reverse proxy.

    路徑是本地虛擬路徑的名稱。
    url遠端服務器的部分URL。與ProxyPass指令中的使用方法相同。

    示例:
    假定本地服務器擁有地址http://wibble.org/;那么

    ProxyPass /mirror/foo/ http://foo.com/
    ProxyPassReverse /mirror/foo/ http://foo.com/

    will not only cause a local request for the <http://wibble.org/mirror/foo/bar> to be internally converted into a proxy request to <http://foo.com/bar> (the functionality ProxyPass provides here). It also takes care of redirects the server foo.com sends: when http://foo.com/bar is redirected by him to http://foo.com/quux Apache adjusts this to http://wibble.org/mirror/foo/quux before forwarding the HTTP redirect response to the client. Note that the hostname used for constructing the URL is chosen in respect to the setting of the UseCanonicalName directive.

    Note that this ProxyPassReverse directive can also be used in conjunction with the proxy pass-through feature ("RewriteRule ... [P]") from mod_rewrite because its doesn't depend on a corresponding ProxyPass directive.

    When used inside a <Location> section, the first argument is ommitted and the local directory is obtained from the <Location>.

    (三).實際問題解決及說明:

    <IfModule mod_proxy.c>
          ProxyPass /mysys/ http://192.168.8.11:81/mysys/
          ProxyPassReverse /mysys/ http://192.168.8.11:81/mysys/
    </IfModule>


    ①  這里有兩個mysys,我們分別叫做叫做path_wapm和path_iis

    ProxyPass /path_wapm/
         http://192.168.8.11:81/path_iis/
         path_wapm:這個是虛擬的目錄名稱,可以任意指定一個

    ②ProxyPassReverse /path_wapm/
         http://192.168.8.11:81/path_iis/
         path_iis:這個必須通過81端口可以訪問的


    那么,訪問http://wapm服務器/path_wapm的時候,實際訪問的將自動轉換為了
    http://192.168.8.11:81/path_iis/的.

    ③path_wapm如果不加,就不知道訪問哪一個虛擬目錄的時候需要使用ASP,

    path_iis不加,那么就是訪問http://192.168.8.11:81/的效果了

    簡單來說:就是把IIS站點的一個目錄,當作WAPM的一個虛擬目錄來訪問,
    可以是IIS站點的一個子目錄,也可以是根目錄.
    posted on 2009-07-05 16:09 藍劍 閱讀(17415) 評論(0)  編輯  收藏 所屬分類: Other


    <2009年7月>
    2829301234
    567891011
    12131415161718
    19202122232425
    2627282930311
    2345678

    常用鏈接

    留言簿(6)

    隨筆分類(62)

    隨筆檔案(90)

    文章檔案(9)

    相冊

    友情鏈接

    搜索

    •  

    積分與排名

    • 積分 - 325903
    • 排名 - 172

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 波多野结衣免费在线观看| 亚洲日韩乱码中文无码蜜桃| 国国内清清草原免费视频99| 国产精品免费观看视频| 亚洲大尺度无码无码专线一区| 亚洲AV永久精品爱情岛论坛| 亚洲国产成人精品久久久国产成人一区二区三区综 | 五月天网站亚洲小说| 亚洲欧洲国产成人综合在线观看| 毛片免费视频播放| 91香蕉国产线在线观看免费| aaa毛片视频免费观看| 免费福利资源站在线视频| 亚洲欧美中文日韩视频| 亚洲一级片在线播放| 亚洲精品韩国美女在线| 亚洲AV无码不卡在线播放| 亚洲伊人色欲综合网| 国产亚洲av片在线观看18女人 | 亚洲砖码砖专无区2023| 亚洲理论在线观看| 97久久精品亚洲中文字幕无码| 亚洲国产精品成人精品无码区在线| 亚洲成A人片在线观看无码3D| 国产精品国产自线拍免费软件| 无码视频免费一区二三区| 皇色在线视频免费网站| 免费福利视频导航| 久久久久久久免费视频| 国产成人免费网站| 黄瓜视频影院在线观看免费| 免费精品人在线二线三线区别| 免费阿v网站在线观看g| 免费无码精品黄AV电影| 在线免费观看一级片| 成年女人18级毛片毛片免费| 在线a人片天堂免费观看高清| 免费观看理论片毛片| 四虎亚洲国产成人久久精品| 亚洲?v女人的天堂在线观看| 亚洲一级片免费看|