Apache virtual host and tomcat using ProxyPass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux