我试图使用mod_proxy_ajp将从tocat.example.com到example.com:8080的所有请求转发给example.com:8080,这是tomcat server.xml的样子:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />下面是apache.conf配置:
<VirtualHost *:80>
ServerName tomcat.example.com
ServerAdmin amdin@gmail.com
ErrorLog logs/tomcat.example.com-error_log
CustomLog logs/tomcat.example.com-access_log common
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://example:8009/
ProxyPassReverse / ajp://example:8009/
</VirtualHost>但这不管用,知道吗?
发布于 2012-05-20 03:18:08
答案的前半部分被删除;误读的问题
http://www.vakuumverpackt.de/tcptunnel/
(空壳)
$ tcptunnel --local-port=PORT --remote-host=IP-TO-TOMCAT --remote-port=8009https://serverfault.com/questions/409180
复制相似问题