亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標題:
關于linux系統上apache部署遇到的難題
[打印本頁]
作者:
hero20021983
時間:
2013-09-04 14:08
標題:
關于linux系統上apache部署遇到的難題
各位高手:
我在linux系統上部署apache,目的是為了實現請求重定向,部分配置如下:
。。。。
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
RewriteEngine on
RewriteCond %{para} ".*xxxx_xxx_0.*"
RewriteRule "/service" "http://192.168.1.122:5050/InnerReceiver" [P,L]
RewriteCond %{para} ".*"
RewriteRule "/service" "http://192.168.1.122:5595/SerialReceiver" [P,L]
RewriteLog "logs/rewritelog"
RewriteLogLevel 9
ProxyRequests off
ProxyPass /
http://192.168.1.122:5595/
ProxyPassReverse /
http://192.168.1.122:5595/
調試的時候日志顯示:
192.168.1.10 - - [04/Sep/2013:11:45:57 +0800] [192.168.1.122/sid#6398a18][rid#64618f8/initial] (4) RewriteCond:
input=''
pattern='.*xxxx_xxx_0.*' => not-matched
192.168.1.10 - - [04/Sep/2013:11:45:57 +0800] [192.168.1.122/sid#6398a18][rid#64618f8/initial] (3) applying pattern '/NGIBOSS' to uri '/NGIBOSS'
192.168.1.10 - - [04/Sep/2013:11:45:57 +0800] [192.168.1.122/sid#6398a18][rid#64618f8/initial] (4) RewriteCond:
input=''
pattern='.*' => matched
192.168.1.10 - - [04/Sep/2013:11:45:57 +0800] [192.168.1.122/sid#6398a18][rid#64618f8/initial] (2) rewrite '/NGIBOSS' -> 'http://192.168.1.122:5595/SerialReceiver'
192.168.1.10 - - [04/Sep/2013:11:45:57 +0800] [192.168.1.122/sid#6398a18][rid#64618f8/initial] (2) forcing proxy-throughput with
http://192.168.1.122:5595/SerialReceiver
192.168.1.10 - - [04/Sep/2013:11:45:57 +0800] [192.168.1.122/sid#6398a18][rid#64618f8/initial] (1) go-ahead with proxy request proxy:
http://192.168.1.122:5595/SerialReceiver
[OK]
我以包含‘xxxx_xxx_0’的請求去調試,還是一直跳轉到‘.*’的配置,走了
http://192.168.1.122:5595/SerialReceiver
應用,而沒走到配置中對應的
http://192.168.1.122:5050/InnerReceiver
應用。
后來才發(fā)現,apache的rewriteEngine取到的input是空的,請教高手,apache取input是在哪兒控制的呢?
問題緊急,在線等待,希望各位高手指點,感激不盡。
作者:
rdcwayx
時間:
2013-09-09 19:26
不是太理解你的需求, 兩個keywords 都是 service, 你到底要指向5050端口還是5595的端口?
RewriteRule "/service" "http://192.168.1.122:5050/InnerReceiver" [P,L]
RewriteRule "/service" "http://192.168.1.122:5595/SerialReceiver" [P,L]
復制代碼
作者:
hero20021983
時間:
2013-09-23 11:50
謝謝!修改代碼問題解決了。
作者:
rdcwayx
時間:
2013-12-13 10:37
hero20021983 發(fā)表于 2013-09-23 11:50
謝謝!修改代碼問題解決了。
解決的話,請貼出解決方案,讓我猜的話,可能是改成:
RewriteRule "/InnerReceiver" "http://192.168.1.122:5050/InnerReceiver" [P,L]
RewriteRule "/SerialReceiver" "http://192.168.1.122:5595/SerialReceiver" [P,L]
復制代碼
歡迎光臨 Chinaunix (http://72891.cn/)
Powered by Discuz! X3.2