Re: Reverse proxy

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

 



On Tue, Mar 6, 2012 at 10:06 PM, Mathijs <mathijssch@xxxxxxxxx> wrote:
%{HTTP_HOST} is not a valid part of a substitution, its only valid when used with a RewriteCond directive. See http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule for valid uses of RewriteRule.

Apologies, I am misreading the docs myself, apparently it can be used in a RewriteRule. The following solution still stands though:
 

In this case, you don't need mod_rewrite at all. Instead set both redirects with "RedirectMatch ^/(ifolder|admin)$ https://teknerds.net/$1"

[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