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

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

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

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

    說(shuō)明: 將一個(gè)遠(yuǎn)端服務(wù)器映射到本地服務(wù)器的URL空間中
    語(yǔ)法: ProxyPass [路徑] !|url
    上下文: 服務(wù)器配置, 虛擬主機(jī)
    狀態(tài): Extension
    模塊: mod_proxy

    指令對(duì)于您不想對(duì)某個(gè)子目錄進(jìn)行反向代理時(shí)很有用。比如說(shuō):

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

    將會(huì)代理除對(duì)/mirror/foo/i請(qǐng)求之外的所有對(duì) foo.com 的/mirror/foo請(qǐng)求。

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

    如果您需要一個(gè)更加靈活的反向代理配置,請(qǐng)參見(jiàn)使用[P]標(biāo)記的RewriteRule指令。


    (二).ProxyPassReverse 指令

    說(shuō)明: 調(diào)整由反向代理服務(wù)器發(fā)送的HTTP回應(yīng)頭中的URL
    語(yǔ)法: ProxyPassReverse [路徑] url
    上下文: 服務(wù)器配置, 虛擬主機(jī)
    狀態(tài): Extension
    模塊: mod_proxy

    此 指令使 Apache 調(diào)整HTTP重定向回應(yīng)中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遠(yuǎn)端服務(wù)器的部分URL。與ProxyPass指令中的使用方法相同。

    示例:
    假定本地服務(wù)器擁有地址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>.

    (三).實(shí)際問(wèn)題解決及說(shuō)明:

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


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

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

    ②ProxyPassReverse /path_wapm/
         http://192.168.8.11:81/path_iis/
         path_iis:這個(gè)必須通過(guò)81端口可以訪問(wèn)的


    那么,訪問(wèn)http://wapm服務(wù)器/path_wapm的時(shí)候,實(shí)際訪問(wèn)的將自動(dòng)轉(zhuǎn)換為了
    http://192.168.8.11:81/path_iis/的.

    ③path_wapm如果不加,就不知道訪問(wèn)哪一個(gè)虛擬目錄的時(shí)候需要使用ASP,

    path_iis不加,那么就是訪問(wèn)http://192.168.8.11:81/的效果了

    簡(jiǎn)單來(lái)說(shuō):就是把IIS站點(diǎn)的一個(gè)目錄,當(dāng)作WAPM的一個(gè)虛擬目錄來(lái)訪問(wèn),
    可以是IIS站點(diǎn)的一個(gè)子目錄,也可以是根目錄.
    posted on 2009-07-05 16:09 藍(lán)劍 閱讀(17405) 評(píng)論(0)  編輯  收藏 所屬分類: Other


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

    常用鏈接

    留言簿(6)

    隨筆分類(62)

    隨筆檔案(90)

    文章檔案(9)

    相冊(cè)

    友情鏈接

    搜索

    •  

    積分與排名

    • 積分 - 325073
    • 排名 - 172

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 日韩亚洲人成网站| 亚洲人成网国产最新在线| 一级日本高清视频免费观看| 久草免费在线观看视频| 亚洲人成在线观看| 亚洲国产精品免费视频| 亚洲激情在线观看| 热re99久久6国产精品免费| 亚洲第一精品在线视频| 无码国产精品一区二区免费3p | 国产美女精品久久久久久久免费| 精品亚洲国产成人| 成年女人毛片免费播放人 | 成人啪精品视频免费网站| 亚洲欧洲日本在线观看| 国产精品久久香蕉免费播放| 羞羞视频网站免费入口| 亚洲欧洲中文日韩av乱码| 中国videos性高清免费| 久久精品视频亚洲| 91香蕉视频免费| 日韩欧美亚洲中文乱码| 亚洲成A人片在线观看中文| 中文无码日韩欧免费视频| 亚洲AV午夜福利精品一区二区| 91麻豆国产免费观看| 狠狠色香婷婷久久亚洲精品| 永久免费毛片手机版在线看| 一边摸一边爽一边叫床免费视频| 国产亚洲精品精华液| 国产福利在线免费| 免费看一级一级人妻片| 亚洲国产精品无码AAA片| 99在线视频免费观看视频 | 亚洲网站在线免费观看| 成人免费无码视频在线网站| 又黄又大的激情视频在线观看免费视频社区在线 | a级毛片毛片免费观看久潮| 亚洲日本乱码一区二区在线二产线 | 猫咪免费人成在线网站| 亚洲第一视频网站|