Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_ssl.c>
- #<VirtualHost *:443> # With this line, the site serves fine
- <VirtualHost someSite.com:443> # With this line, browsers throw the error
- DocumentRoot /var/www/someSite/public_html
- ServerName someSite.com
- ServerAlias www.someSite.com
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /var/www/someSite/public_html/>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride None
- Order allow,deny
- allow from all
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
- SSLEngine on
- SSLCertificateFile /etc/apache2/ssl/someSite.com.crt
- SSLCertificateKeyFile /etc/apache2/ssl/someSite.key
- <FilesMatch "\.(cgi|shtml|phtml|php)$">
- SSLOptions +StdEnvVars
- </FilesMatch>
- <Directory /usr/lib/cgi-bin>
- SSLOptions +StdEnvVars
- </Directory>
- BrowserMatch "MSIE [2-6]" \
- nokeepalive ssl-unclean-shutdown \
- downgrade-1.0 force-response-1.0
- BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
- </VirtualHost>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement