You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/12/07 10:29:17 UTC
[users@httpd] Apache virtual host and tomcat using ProxyPass
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
Re: [users@httpd] Apache virtual host and tomcat using ProxyPass
Posted by Krist van Besien <kr...@gmail.com>.
On Sun, Dec 7, 2008 at 10:29 AM, Angelo Chen <an...@yahoo.com.hk> wrote:
> any idea what I'm missing here?
What is in your error log?
Is there anyhting in your tomcat log?
What is the output of apache2ctl -S?
Krist
--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
---------------------------------------------------------------------
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