![Apache 背后的 tomcat](https://linux22.com/image/584858/Apache%20%E8%83%8C%E5%90%8E%E7%9A%84%20tomcat.png)
我正在尝试使用 mod_proxy_ajp 转发来自的所有请求tocat.example.com到例如.com:8080 以下是 tomcat服务器.xml好像:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
这是Apache 配置文件配置:
<VirtualHost *:80>
ServerName tomcat.example.com
ServerAdmin [email protected]
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>
但它不起作用,有什么想法吗?
答案1
[答案的前半部分被删除;误读了问题]
http://www.vakuumverpackt.de/tcptunnel/
(带壳)
$ tcptunnel --local-port=PORT --remote-host=IP-TO-TOMCAT --remote-port=8009