我只是在端口80上设置了tomcat 在/etc/httpd/conf/httpd.conf上添加它
<VirtualHost *:80>
ServerAdmin tomcat@something.com
ServerName something.com
ServerAlias www.something.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://something.com:8080/
ProxyPassReverse / http://something.com:8080/
ErrorLog logs/something.com-error_log
CustomLog logs/something.com-access_log common
</VirtualHost>
但现在我正在尝试访问something.com/phpMyadmin
重定向到something.com:8080/something.com
这是一条错误的路径
请帮忙
答案 0 :(得分:2)
尝试在之前添加此行现有的ProxyPass
:
ProxyPass /phpMyadmin !
它告诉Apache 不将此路径代理到Tomcat。其他一切都将被代理。