Apache virtual hosts and Tomcat

Apache virtual hosts and Tomcat

am 30.03.2008 21:01:54 von Sergio Pozzetti

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:



ProxyPass / http://127.0.0.1:8080/blabla/
ProxyPassReverse / http://127.0.0.1:8080/blabla/
ServerName www.blabla.com


Of course mod_proxy and mod_proxy_http are up and running, and I have a
NameVirtualHost entry in my listen.conf file, stating :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

Re: Apache virtual hosts and Tomcat

am 31.03.2008 00:10:48 von Kees Nuyt

On Sun, 30 Mar 2008 20:01:54 +0100, Sergio Pozzetti
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:
>
>
>
> ProxyPass / http://127.0.0.1:8080/blabla/
> ProxyPassReverse / http://127.0.0.1:8080/blabla/
> ServerName www.blabla.com
>

>
>Of course mod_proxy and mod_proxy_http are up and running, and I have a
>NameVirtualHost entry in my listen.conf file, stating :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

ServerName www.blabla.com
ProxyPass / http://127.0.0.1:8080/blabla/
ProxyPassReverse / http://127.0.0.1:8080/blabla/

--
( Kees
)
c[_] If voting could change the system, it would be illegal. (#537)