Advertisement
dotancohen

sites-available-ssl

Jul 3rd, 2013
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. #<VirtualHost *:443> # With this line, the site serves fine
  3. <VirtualHost someSite.com:443> # With this line, browsers throw the error
  4. DocumentRoot /var/www/someSite/public_html
  5.  
  6. ServerName someSite.com
  7. ServerAlias www.someSite.com
  8.  
  9. <Directory />
  10. Options FollowSymLinks
  11. AllowOverride None
  12. </Directory>
  13. <Directory /var/www/someSite/public_html/>
  14. Options Indexes FollowSymLinks MultiViews
  15. AllowOverride None
  16. Order allow,deny
  17. allow from all
  18. </Directory>
  19.  
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21. LogLevel warn
  22. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  23.  
  24. SSLEngine on
  25. SSLCertificateFile /etc/apache2/ssl/someSite.com.crt
  26. SSLCertificateKeyFile /etc/apache2/ssl/someSite.key
  27.  
  28. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  29. SSLOptions +StdEnvVars
  30. </FilesMatch>
  31. <Directory /usr/lib/cgi-bin>
  32. SSLOptions +StdEnvVars
  33. </Directory>
  34.  
  35. BrowserMatch "MSIE [2-6]" \
  36. nokeepalive ssl-unclean-shutdown \
  37. downgrade-1.0 force-response-1.0
  38. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  39.  
  40. </VirtualHost>
  41. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement