NameVirtualHost *:80
NameVirtualHost *:443
# Redirect all unencrypted connections which haven't been defined to the secure ones
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
GnuTLSEnable On
GnuTLSPriorities SECURE
GnuTLSCertificateFile /etc/pki/tls/certs/localhost.crt
GnuTLSKeyFile /etc/pki/tls/private/localhost.key
ServerName something.example.org
GnuTLSEnable On
GnuTLSPriorities SECURE
GnuTLSCertificateFile /etc/pki/tls/certs/something.example.org.crt
GnuTLSKeyFile /etc/pki/tls/private/something.example.org.key
DocumentRoot "/var/www/html/something.example.org"