Bug 53947 - Feature Request, RewriteRule - ProxyPreserveHost flag (and related)
Summary: Feature Request, RewriteRule - ProxyPreserveHost flag (and related)
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_rewrite (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-29 17:39 UTC by Francois Leurent
Modified: 2012-09-29 19:01 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Leurent 2012-09-29 17:39:27 UTC
Hi
- ProxyPreserveHost is a server conf directive only, and in my opinion, a must have feature for in all cluster & lb related proxy configuration.
- RewriteRule [P] is a very usefull directive for migrating a specific part of an application to another server

- There should be very little depency between a cluster IP and a service name (domain name) - that's the whole purpose  of ProxyPreserveHost

In massive name base virtualhost environnement, i have only ONE virtualhost
<Virtualhost>
  ServerAlias allalloweddomains.tld
  VirtualDocumentRoot /etc/httpd/redirector/%0
</VirtualHost>

I cannot enable ProxyPreserveHost on the whole Virtualhost (location /services/ is irrelevant).

I'm asking for 
* enabling ProxyPreserveHost in .htaccess ? [OR]
* creating an inline ProxyPreserveHost RewriteRule flag

Therefore, the
RewriteCond %QUERY_STRING ClassName=SpecificSOAPWSClass
RewriteCond (.*)  http:// [cluster ip with upcomming architecture evolution]/$1 [P,PPH]

Would work as supposed.
New apache extensions mod_remoteip are (kindeof) around same kind of proxy/lb transparency issue.


In the same spirit, ProxyImposeHost might also be usefull
RewriteCond (.*)  http:// [cluster ip with upcomming architecture evolution]/$1 [P,PIH=newfeature.domain.com]

I hope you'll agree with this new feature.

Best Regards.