Re: Antw: Re: [users@httpd] Rewriting headers

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

 




I'd say you have it almost 100% correct. The portion that's off is your step 2. In my reverse-proxy set-ups, I never use mod_proxy's directives. I always use mod_rewrite, since I'm almost always in a situation where I need to pass additional information from the front-side to the back-side of the proxy. Every time I've tried to do this, using ProxyPass to handle the proxy work, it's always executed in the wrong order, so now I just use the [P] flag in a RewriteRule.

-Brian


On May 23, 2005, at 03:03 AM, Alexander Mueller wrote:
Good morning Brian,

thanks for your reply. Did I understand your explanation correctly?

  1. Request comes in
2. Request is not considered as proxy request and hence initially not handled by mod_proxy
  3. Request is caught by mod_rewrite
4. mod_rewrite parses the headers, retrieves the values in question by regex and stores them in environment variables
  5. mod_headers modifies the headers upon the env-vars
6. Apache reverse proxies the request with the modified headers to the static upstream server through mod_write and the bottom RewriteRule

Thank you,
Alexander


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