的Apache Tomcat的server.xml:前移的Tomcat与Apache HTTP服务器
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
This connector uses the NIO implementation that requires the JSSE
style configuration. When using the APR/native implementation, the
OpenSSL style configuration is required as described in the APR/native
documentation -->
<!--
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="127.0.0.1" enableLookups="false" protocol="AJP/1.3" redirectPort="8443" />
Apache HTTP服务器的httpd.conf:
cd /path/to/apache/config
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
ProxyPass /ajp://127.0.0.1:8009/ retry=0
ProxyPassReverse /ajp://127.0.0.1:8009/ retry=0
当我做http://[ip]/[app_name]我有这个呃ror:
Forbidden
You don't have permission to access /[app_name] on this server.
为什么?
'拒绝所有'/'允许从本地主机'?除非你使用'127.0.0.1'或'1'作为[ip]' –
@OlafKock作为[ip]我使用这个http://172.12.6.3/Myapp – Mercer
然后我将这个评论成为答案... –