Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 558 Bytes
<VirtualHost *:80>
ServerName aaronhorler.com
ServerAlias www.aaronhorler.com
# Privacy header.
Header always set X-DNS-Prefetch-Control "off"
ServerAdmin admin@aaronhorler.com
DocumentRoot /var/www/aaronhorler.com/html
# Logging.
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Redirect to HTTPS.
RewriteEngine on
RewriteCond %{SERVER_NAME} =aaronhorler.com [OR]
RewriteCond %{SERVER_NAME} =www.aaronhorler.com
RewriteRule ^ https://aaronhorler.com%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>