Posts

Showing posts from March, 2018

VirtualHost HTTP redirect to HTTPS

<VirtualHost *:80>
    ServerName www.example.com
Redirect / https://www.example.com/
</VirtualHost>

<VirtualHost *:443>
    ServerName www.example.com
    # ... SSL configuration goes here
</VirtualHost>