Apache虚拟主机到tomcat服务器

时间:2013-05-13 08:47:06

标签: apache tomcat virtualhost

我想将apache设置为root到同一台机器上的tomcat服务器.Apache正在侦听端口80和tomcat到9090.我的服务的dns名称是example.com.gr,机器ip就像“ 150.111.111.11“并在我写的httpd文件中

   NameVirtualHost *:80

   <VirtualHost *:80>
   <ServerName example.com.gr
   ErrorLog logs/example.com.gr.gr_error_log
   TransferLog logs/example.com.gr.gr_access_log

    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>

    ProxyPass / http://150.111.111.11:9090/
    ProxyPassReverse / http://150.111.111.11:9090/

    <Location />
    Order allow,deny
    Allow from all
    </Location>

    </VirtualHost>

但是当我点击example.com.gr我得到(110)连接超时,但如果我点击example.com.gr:9090我看到我的门户网站。任何想法?

0 个答案:

没有答案