[users@httpd] Reverse proxying problem

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

 



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