Using variables with mod_substitute to rewrite dynamically

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

 



Hi,
 
I’m trying to substitute a server name dynamically in xml responses
Substitute s|http://blah.com|${SERVER_NAME}|n
to now success. Apache complains conf variable is not defined, but it is there in VirtualHost.
 
So far I was able only to use <IF> and put a specific substitute for a specific host. The reason I need it dynamically is that I have thousands of proxy rules through <Location> directives, I want to be able move those rules from one environment to another without updating a hardcoded value.
 
Thanks,
Vlad

[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