Advertisement
Guest User

default-ssl.conf

a guest
Mar 25th, 2015
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. <VirtualHost _default_:443>
  3.  
  4. ServerAdmin webmaster@localhost
  5.  
  6. DocumentRoot /var/www
  7.  
  8. WSGIDaemonProcess allianceauth python-path=/home/allianceserver/allianceauth
  9. WSGIProcessGroup allianceauth
  10. WSGIScriptAlias / /home/allianceserver/allianceauth/alliance_auth/wsgi.py
  11.  
  12. Alias /favicon.ico /var/www/favicon.ico
  13. Alias /static/ /home/allianceserver/allianceauth/static/
  14. Alias /templates/ /home/allianceserver/allianceauth/templates/
  15.  
  16. Alias /forums "/var/www/forums/"
  17. Alias /killboard "/var/www/killboard/"
  18.  
  19. <Directory "/var/www/forums/">
  20. Require all granted
  21. </Directory>
  22.  
  23. <Directory "/var/www/killboard/">
  24. Require all granted
  25. </Directory>
  26.  
  27.  
  28. <Directory />
  29. Options FollowSymLinks
  30. AllowOverride None
  31. Require all granted
  32. </Directory>
  33.  
  34. <Directory /var/www/>
  35. Options Indexes FollowSymLinks MultiViews
  36. AllowOverride None
  37. Require all granted
  38. </Directory>
  39.  
  40. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  41. <Directory "/usr/lib/cgi-bin">
  42. AllowOverride None
  43. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  44. Require all granted
  45. </Directory>
  46.  
  47. ErrorLog ${APACHE_LOG_DIR}/error.log
  48.  
  49. # Possible values include: debug, info, notice, warn, error, crit,
  50. # alert, emerg.
  51. LogLevel warn
  52.  
  53. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  54.  
  55. Alias /doc/ "/usr/share/doc/"
  56. <Directory "/usr/share/doc/">
  57. Options Indexes MultiViews FollowSymLinks
  58. AllowOverride None
  59. Require host 127.0.0.0/255.0.0.0 ::1/128
  60. </Directory>
  61.  
  62. # SSL Engine Switch:
  63. # Enable/Disable SSL for this virtual host.
  64. SSLEngine on
  65.  
  66. SSLCertificateFile /etc/apache2/ssl/apache.pem
  67. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  68.  
  69. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  70. SSLOptions +StdEnvVars
  71. </FilesMatch>
  72. <Directory /usr/lib/cgi-bin>
  73. SSLOptions +StdEnvVars
  74. </Directory>
  75.  
  76. BrowserMatch "MSIE [2-6]" \
  77. nokeepalive ssl-unclean-shutdown \
  78. downgrade-1.0 force-response-1.0
  79. # MSIE 7 and newer should be able to use keepalive
  80. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  81.  
  82. </VirtualHost>
  83. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement