[users@httpd] Re: ProxyPreserve... Port?

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

 



Joost,

Yup, yer right, I turned off proxyrequests, and it's unnecessary. Doesn't help change the output though. I could run something to fix
the output, but it just seemed to me that if apache is going to allow
you to preserve the host, it should allow you to preserve the port
too.

On 5/10/06, Joost de Heer <sanguis@xxxxxxxxx> wrote:
> <VirtualHost *:9980>
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
> ProxyRequests On
> #ProxyPreserveHost On
> ProxyPass /pizza/ http://10.10.1.1:9080/pizza/
> ProxyPassReverse /pizza/ http://10.10.1.1:9080/pizza/
> </VirtualHost>

For reverse proxying, you don't need ProxyRequests on, so are you sure you
want this? Running a reverse proxy and a forward proxy on the same port is
asking for problems.....

> So 9980 in effect is pretending to be 9080, and everything works
> great.  That is until, the application (that i don't have source for)
> uses the http request to hardcode the server IP/Port address in the
> http response body (untouchable by httpd)  Of course, the next fetch
> from the browser will fail, since it's trying to access a 10.x address
> instead of the correct 192.168 address.

You could use mod_proxy_html (http://apache.webthing.com/mod_proxy_html/)
to fix the pages, or, if you are stuck with 'official' modules: use an
external output filter to pipe the page through sed.

Joost



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