OSDir


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

Re: [users@httpd] alias and redirect


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