httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Fix" <jakob....@gmail.com>
Subject [users@httpd] Reverse proxying problem
Date Wed, 15 Mar 2006 22:36:04 GMT
Hello everybody,

here's my problem: I have a Apache 2.0.55 web server serving two
domains using VirtualHosts, but also want to use reverse proxying for
a third domain:

$ cat /etc/apache2/apache2.conf | grep NameVirtualHost
NameVirtualHost 10.0.1.3:80

$ cat /etc/apache2/sites-enabled/domain1.org.conf
<VirtualHost 10.0.1.3:80>
  DocumentRoot    /www/domain1.org
  ServerName      domain1.org
</VirtualHost>

$ cat /etc/apache2/sites-enabled/domain2.org.conf
<VirtualHost 10.0.1.3:80>
  DocumentRoot    /www/domain2.org
  ServerName      domain2.org
</VirtualHost>

This works fine.

However, as mentioned I also want to use this same web server to do
some reverse proxying for a Cocoon application running on the same
machine on port 808x.  After reading the documentation, I thought the
following configuration would do the trick so that all requests for
domain3.org would be forwarded on to the Cocoon application running
behind port 808x:

$ cat /etc/apache2/sites-enabled/domain3.org.conf
ProxyRequests Off
<VirtualHost 10.0.1.3:80>
  ServerName domain3.org
  ProxyPass        / http://10.0.1.3:8085/app/
  ProxyPassReverse / http://10.0.1.3:8085/app/
</VirtualHost>

log extract:
[Wed Mar 15 22:56:49 2006] [notice] Apache/2.0.55 (Debian) PHP/4.4.2-1
configured -- resuming normal operations
[Wed Mar 15 22:56:51 2006] [error] [client 82.xx.xx.xx] client denied
by server configuration:
proxy:http://10.0.1.3:8085/app/some/sub/directory/

This doesn't work.  Any idea what I'm doing wrong?  Thanks for your help.

--
cheers,
Jakob.

---------------------------------------------------------------------
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