RE: [users@httpd] ProxyPass does not work with hostnames only IP's. (mod_proxyApache 1.3)

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

 



Sorry I forgot to mention, OpenBSD comes with Apache 1.3 by default.
I'm using Apache 1.3

Quoting Axel-Stéphane  SMORGRAV <Axel-Stephane.SMORGRAV@xxxxxxxxxxxxxx>:

I will assume that you are using Apache 2.0 or newer. In that case,
in addition to mod_proxy, you need to include the mod_proxy_http
module.

-ascs

-----Original Message-----
From: bsdsec@xxxxxxxxxxxxxxxxxxxxxx [mailto:bsdsec@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, January 16, 2006 1:41 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] ProxyPass does not work with hostnames only
IP's. (mod_proxyApache 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


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






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