RedirectMatch using current server name

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

 



Is there a way to do something like the following where the domain part is replaced by whatever has been configured in ServerName

RedirectMatch permanent ^/$ http://the.domain.com/path/to/file.html

i.e. where 'the.domain.com' is whatever the current ServerName is without having to edit the RedirectMatch line (it would be in a config section that gets included into several different virtual hosts). Want to keep this in the main config files, not in any .htacess files

Thanks in advance for any help on this.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-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