我對服務器沒有多少經驗。所以,這可能是一個愚蠢的問題。目前在我的Apache服務器vim /etc/apache2/sites-enabled/000-default.conf文件中,我有一個proxypass如下。Apache有條件代理通行證
ProxyPass /phpmyadmin !
ProxyPass/http://localhost:8080/
ProxyPassReverse/http://localhost:8080/
我想實現一個有條件的代理通行證下面的情形
如果URL中包含?_escaped_fragment_=
,像下面
http://localhost/web/?_escaped_fragment_=/health
的URL我希望這個網址被重定向到一個URL一個不同的端口,如下面的URL,
http://localhost:8082/web/?_escaped_fragment_=/health
如果URL不是包含?_escaped_fragment_=
,像下面的網址,
http://localhost/web/#!/health
代理通過我前面提到的,其重定向到8080端口應該發生。這是什麼代碼?
什麼是Apache的版本? –
尋找[apache條件代理通行證](https://www.google.de/search?q=apache+conditional+proxypass)給其他人http://serverfault.com/questions/625426/how-to-create-條件代理通行證,也許這有助於。 –
嗨,我的Apache版本是Apache/2.4.7 –