Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2.  
  3. <VirtualHost *:80>
  4. ServerName mysite.myserver.com
  5. Redirect permanent / https://mysite.myserver.com
  6. </VirtualHost>
  7.  
  8. <VirtualHost *:443>
  9. ServerAdmin admin@example.com
  10.  
  11. DocumentRoot /srv/http/stage/mysite/public_html
  12. ServerName mysite.myserver.com
  13. ServerAlias www.mysite.myserver.com
  14.  
  15. <Directory /srv/http/stage/mysite/public_html>
  16. Options +FollowSymLinks
  17. AllowOverride All
  18. Order allow,deny
  19. allow from all
  20. Require all granted
  21. </Directory>
  22.  
  23. # Possible values include: debug, info, notice, warn, error, crit,
  24. # alert, emerg.
  25. LogLevel warn
  26. ErrorLog ${APACHE_LOG_DIR}/mysite.myserver.com.error.log
  27. CustomLog ${APACHE_LOG_DIR}/mysite.myserver.com.access.log combined
  28.  
  29. SSLEngine on
  30. SSLCertificateFile /etc/ssl/local/mysite.com/mysite.com.pem
  31. SSLCertificateKeyFile /etc/ssl/private/mysite.com.key
  32. SSLCertificateChainFile /etc/ssl/local/mysite.com/ca-chain.crt
  33. SSLCACertificateFile /etc/ssl/local/mysite.com/ca-bundle.crt
  34.  
  35. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  36. SSLOptions +StdEnvVars
  37. </FilesMatch>
  38. <Directory /usr/lib/cgi-bin>
  39. SSLOptions +StdEnvVars
  40. </Directory>
  41.  
  42. BrowserMatch "MSIE [2-6]" \
  43. nokeepalive ssl-unclean-shutdown \
  44. downgrade-1.0 force-response-1.0
  45. # MSIE 7 and newer should be able to use keepalive
  46. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  47.  
  48. </VirtualHost>
  49. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement