0
Tomcat7服務器託管我的機器上的網站,我想使用Apache2作爲代理,通過我的瀏覽器查看它:http://localhost:8080/examples作爲http://localhost/examples。使用Apache2作爲Tomcat7的代理
我已經安裝了Apache2和Tomcat7,它們都可以在我的電腦上運行。 我已加載的mod_proxy和mod_proxy_http模塊
在我http_vhosts.conf文件我有:
<VirtualHost *:80>
ProxyRequests off
SSLProxyEngine on
ProxyPreserveHost on
ServerName mathost.workstation.org
ProxyPass /examples http://localhost:8080/examples
ProxyPassReverse /examples http://localhost:8080/examples
ProxyRequests Off
</VirtualHost>
在我proxy_http.conf我:
ProxyRequests Off
ProxyPreserveHost On
<Location "/examples/">
ProxyPass /examples http://localhost:8080/examples
ProxyPassReverse /examples http://localhost:8080/examples
Order deny,allow
Allow from all
</Location>
它不起作用,阿帕奇日誌說「GET/examples/HTTP/1.1」404 207「。
error_log中的任何消息? – umka
GET/examples HTTP/1.1「404 206 – MdC
這看起來像一個access_log,而不是error_log。來自error_log的消息包含一個額外的描述是什麼原因導致錯誤,它在哪裏尋找不存在的文件等。 – umka