Server-Variables in CondPattern of RewriteCond directive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hello everyone! What I am trying to do is use the server variable
%{SERVER_NAME} as the CondPattern argument to the RewriteCond
directive. However, all of my attempts appear to render the string
'%{SERVER_NAME}' as a string literal, rather than replacing it with the
variable name I expect (i.e., the value for the ServerName of the
VirtualHost).
Could someone please help me in trying to do this. I would like to use
the server variable as it would save me a lot of time as I am
configuring many different VirtualHosts with similar, but not identical,
setups, but this aspect is consistent for many of them.
Thank you all in advance!
---------------------------------------------------------------------
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]