On 22 Jan 2014, at 5:36 PM, Thomas Eckert <[email protected]> wrote:

> Some time ago I put up HTTP to HTTPS redirects in place which now needed an 
> update so they would not only work for constant host names but use the 'Host' 
> header information as target host.
> So a simple
>   Redirect permanent / https://example.org/
> wasn't enough. I wanted to avoid using mod_rewrite (not included in my 
> configs so far anyway) and stick with the much simpler mod_alias so I read 
> through mod_alias.c. From what I could see there wasn't any means to do get 
> this working so I came up with

This looks like a job for the expression parser, ie this:

Redirect permanent / https://%{HOST}/

(Syntax off top of head, probably wrong).

Having done expression parser for the require directive, my next one on the 
wishlist was DocumentRoot (to replace the mass virtual hosting module) followed 
by mod_alias.

Regards,
Graham
--

Reply via email to