Apache和Tomcat整合后不能访问根目录
我用8080端口运行Tomcat,用8081端口运行Apache,
整合后访问
http://localhost:8080/softs/index.jsp
http://localhost:8081/softs/index.jsp
效果一样;
访问:
http://localhost:8080/
http://localhost:8080/index.jsp
可以正确看到Tomcat页面。
但访问
http://localhost:8081/
就报错 403 Forbidden,
You don't have permission to access / on this server.
我在Apache2\conf\httpd.conf 下的虚拟目录是这样配置的:
<VirtualHost: localhost:8081>
ServerAdmin 111@my.com
DocumentRoot D:\WWWROOT
ServerName localhost
ErrorLog logs/err.txt
CustomLog logs/access.txt common
</VirtualHost>
有问题吗?错在哪里?请指教。