httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: [users@httpd] Redirection via HTTPS
Date Sun, 08 Feb 2015 20:03:08 GMT
On Sun, Feb 8, 2015 at 7:36 AM, YUSUI T <yusui.tomikawa@gmail.com> wrote:
>
> root@hostname:~# tail -n 6 /etc/apache2/mods-available/ssl.conf
> <VirtualHost *:443>
>         ServerName www.mydomain.com
>         Redirect / https://www.mydomain.com/
> </VirtualHost>

You probably want to redirect to https when the request is plain http, hence :
  <VirtualHost *:80>
above.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message