0
我想在运行Ubuntu服务13.04 64位的VPS主机上一起运行Apache和Tomcat7,但无法通过AJP连接器将它们连接在一起。我读过教程,直到我的眼睛流血,没有运气。我已经安装了mod-proxy-ajp模块。配置Apache和Tomcat:无法访问/在服务器
我在Tomcat的server.xml文件中未注释AJP连接器。这里是我的网站文件从/ etc/apache2的/站点可用(这被链接到/ etc/apache2的/启用的站点 - ):
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.mysite.org
ServerAlias mysite.org
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
ProxyPass/ajp://localhost:8009/
ProxyPassReverse/ajp://localhost:8009/
ErrorLog ${APACHE_LOG_DIR}/mysite.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/mysite.access.log combined
</VirtualHost>
即使这样,试图访问http://www.mysite.org给了我一个403错误,消息是“您无权访问/在此服务器上”。
我的vhost配置有什么问题吗?
杰森