[users@httpd] mod_proxy and mod_headers

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

 



I'm trying to modify the "Host" request header for a URL that is
subject to proxying, but that doesn't seem to work. Setting
ProxyPreserveHost On does work, but breaks other parts of the
configuration.

LoadModule rewrite_module modules/mod_rewrite.so
LoadModule headers_module modules/mod_headers.so

RewriteEngine On

RequestHeader set Host www.somehost.com

RewriteRule /cd4(.*) http://www.backend1:8080/cd4$1 [P]

result between Apache en backend
GET /cd4/survey.htm HTTP/1.1\r\n
Host: www.backend.com:8080\r\n

Is there something that I'm overlooking? (processing order of modules?)

Kind Regards,

Spil Oss

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