Re: alias and redirect

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

 



On Sun, Sep 9, 2018 at 9:07 AM Jaap van Wingerde
<mailinglists@xxxxxxxxxxxxxx> wrote:
>
> Users!
>
> ...
> Alias "/.well-known/acme-challenge/" "/var/run/acme/acme-challenge/"
> <Directory "/var/run/acme/acme-challenge">
>   AllowOverride None
> #  Options None
>   Options All +FollowSymLinks
>   Require all granted
> </Directory>
>
> RedirectPermanent / https://subdomain.domain.ext/

I would suggest wrapping it in <if> in 2.4 to restrict the Redirect.
It's a bit more tidy than a negative regex or switching to
mod_rewrite.
Some example expressions in an if are here:
https://httpd.apache.org/docs/2.4/expr.html#examples

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