<VirtualHost *:80>

    ServerName sfeagil.com
    ServerAlias www.sfeagil.com

    ServerAdmin webmaster@localhost

    # Redirection HTTP -> HTTPS
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    ErrorLog ${APACHE_LOG_DIR}/sfeagil_error.log
    CustomLog ${APACHE_LOG_DIR}/sfeagil_access.log combined

RewriteCond %{SERVER_NAME} =sfeagil.com [OR]
RewriteCond %{SERVER_NAME} =www.sfeagil.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

