问题描述
- apache配置VirtualHost后所有访问都转到tomcat了
-
我希望达到的效果是访问 xx.com 依然用apache里面的内容,当访问ex1.xx.com的时候才是访问tomcat。我的配置如下。
现在我访问xx.com也是访问到了tomcat,怎么办呢。
ServerName ex1.xx.com
ServerAdmin xxx@outlook.com
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
ErrorLog logs/ex1error.log
CustomLog logs/ex1_access.log common
解决方案
时间: 2024-09-17 04:08:13