httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo Chen <angelochen...@yahoo.com.hk>
Subject [users@httpd] Apache virtual host and tomcat using ProxyPass
Date Sun, 07 Dec 2008 09:29:17 GMT

Hi,

I use Ubuntu 8.0.10 which has Apache HTTP and Tomcat 6 installed, and I'm
trying out the virtual hosting thing, my server's ip is 192.168.1.1, if I
open http://192.168.1.1:8080 it goes to a tomcat app, now I'd like to use
proxy so that I can do :

www.jupiter.com which will open http://192.168.1.1:8080 instead, but it does
not do what expected, I got an error:

Forbidden

You don't have permission to access / on this server.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at
www.jupiter.com Port 80

any idea what I'm missing here? 

Here is my httpd.conf:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.venus.com
ServerAlias venus.com *.venus.com
DocumentRoot /var/www/venus.com
</VirtualHost>

<VirtualHost *:80>
ServerName www.mercury.com
DocumentRoot /var/www/mercury.com
</VirtualHost>

<VirtualHost *:80>
ServerName www.jupiter.com
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse /  http://localhost:8080/
</VirtualHost>


-- 
View this message in context: http://www.nabble.com/Apache-virtual-host-and-tomcat-using-ProxyPass-tp20879325p20879325.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message