You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by bs...@evolutiononline.com.au on 2006/01/16 13:40:59 UTC

[users@httpd] ProxyPass does not work with hostnames only IP's. (mod_proxy Apache 1.3)

Hi!

I'm using OpenBSD 3.8 default install with mod_proxy enabled. I use 
ProxyPass in virtual host directives with success. Example:

<VirtualHost 10.5.5.20>
    ServerName www.foo.org
    ProxyPass / http://172.16.0.5/
    ProxyPassReverse / http://172.16.0.5/
    <Location />
       Order deny,allow
       Allow from all
    </Location>
</VirtualHost>

...which works fine! The problem occurs when I want to use a hostname 
instead of an IP, e.g.:

ProxyPass / http://intranet.foo.org/
ProxyPassReverse / http://intranet.foo.org/

All I get is a "500 Proxy Error" page:
-------------------------------------------------
Proxy Error
The proxy server could not handle the request GET /.

Reason: Host not found
-------------------------------------------------

Every page I've read seems to indicate you can use hostnames in 
ProxyPass directive. The proxy can resolve "intranet.foo.org" and 
access the webpage at that address just fine. It simply wont proxy to 
it!

Any help would be appreciated.

Thanks,

Patrick Halimee


---------------------------------------------------------------------
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] ProxyPass does not work with hostnames only IP's. (mod_proxy Apache 1.3)

Posted by Joshua Slive <jo...@slive.ca>.
On 1/16/06, bsdsec@evolutiononline.com.au <bs...@evolutiononline.com.au> wrote:
> Hi!
>
> I'm using OpenBSD 3.8 default install with mod_proxy enabled. I use
> ProxyPass in virtual host directives with success. Example:

In addition to the ideas that others have provided, note that openbsd
does not use a "standard" apache, but rather a fork with some quantity
of patches.  I believe that openbsd-apache is also chroot'ed by
default.  The chroot could very well cause problems with dns
resolution if not properly configured, and who knows what the patches
do.

In other words, you may be better off contacting an openbsd-specific
mailing list.

Joshua.

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