Apache virtual hosts and Tomcat

Hello,

I have a server with Apache 2.0 running on standard port 80 and Apache
Tomcat on 8080.

I am having difficulties figuring out why I am not able to correctly
redirect requests to Tomcat through ProxyPass.

I have a blabla.conf file in my /etc/apache2/vhosts.d which looks like
this:


<VirtualHost www.blabla.com:80>
ProxyPass / http://127.0.0.1:8080/blabla/
ProxyPassReverse / http://127.0.0.1:8080/blabla/
ServerName www.blabla.com
</VirtualHost>

Of course mod_proxy and mod_proxy_http are up and running, and I have a
NameVirtualHost entry in my listen.conf file, stating <ip>:80.

The access_log from Apache clearly shows the error, it is not
redirecting anything:

[Sun Mar 30 20:00:48 2008] [error] [client xxx.xxx.xxx.xxx] client
denied by server configuration: /srv/www/htdocs/

Any clues would be appreciated!

Sergio
Sergio Pozzetti [ So, 30 März 2008 21:01 ] [ ID #1932920 ]

Re: Apache virtual hosts and Tomcat

On Sun, 30 Mar 2008 20:01:54 +0100, Sergio Pozzetti
<sergio [at] pozzetti.com> wrote:

>Hello,
>
>I have a server with Apache 2.0 running on standard port 80 and Apache
>Tomcat on 8080.
>
>I am having difficulties figuring out why I am not able to correctly
>redirect requests to Tomcat through ProxyPass.
>
>I have a blabla.conf file in my /etc/apache2/vhosts.d which looks like
>this:
>
>
><VirtualHost www.blabla.com:80>
> ProxyPass / http://127.0.0.1:8080/blabla/
> ProxyPassReverse / http://127.0.0.1:8080/blabla/
> ServerName www.blabla.com
></VirtualHost>
>
>Of course mod_proxy and mod_proxy_http are up and running, and I have a
>NameVirtualHost entry in my listen.conf file, stating <ip>:80.
>
>The access_log from Apache clearly shows the error, it is not
>redirecting anything:
>
>[Sun Mar 30 20:00:48 2008] [error] [client xxx.xxx.xxx.xxx] client
>denied by server configuration: /srv/www/htdocs/
>
>Any clues would be appreciated!
>
>Sergio

Try with
NameVirtualHost *:80
and then
<VirtualHost *:80>
ServerName www.blabla.com
ProxyPass / http://127.0.0.1:8080/blabla/
ProxyPassReverse / http://127.0.0.1:8080/blabla/
</VirtualHost>
--
( Kees
)
c[_] If voting could change the system, it would be illegal. (#537)
Kees Nuyt [ Mo, 31 März 2008 00:10 ] [ ID #1932921 ]
Webserver » alt.apache.configuration » Apache virtual hosts and Tomcat

Vorheriges Thema: Re: What is a ReWriterule?
Nächstes Thema: Issue with apache2 configuration with tomcat, openlaszlo