Wildcard-domain environment var for ProxyHTMLURLMap

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

 



Hi!

I got a question about how/where to use environment vars.

Assume a simple namebased VirtualHost that is a reverse proxy:

	Listen 127.0.0.1:1234
	NameVirtualHost 127.0.0.1:1234

	<VirtualHost 127.0.0.1:1234>
		ServerName *.foo.com
		ProxyPass / balancer://lb/
		ProxyPassReverse / balancer://lb/
	</VirtualHost>

	<Proxy balancer://lb>
		BalancerMember http://bar.com
	</Proxy>

Now, I want to sanitize the HTML and Location Headers. But how can I
determine, which domain matching the wildcard was used by the client?
(Host-Header like de.foo.com or en.foo.com)

It has to be something like that (simplyfied):
	
	ProxyHTMLURLMap bar.com %{HTTP_HOST}
	Header edit Location bar.com %{HTTP_HOST}

I found several different ways for giving env-vars or setting them for
myself first. Nothing worked.. (env:, ENV:, env=, %{}, %{}e, etc..)

Any ideas?

Thanks in advance:
	Florian Schröder


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