Advertisement
Guest User

default-ssl.conf

a guest
Nov 4th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 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. Order Deny,Allow
  21. Allow from all
  22. </Directory>
  23.  
  24. <Directory "/var/www/killboard/">
  25. Order Deny,Allow
  26. Allow from all
  27. </Directory>
  28.  
  29.  
  30. <Directory />
  31. Options FollowSymLinks
  32. AllowOverride None
  33. </Directory>
  34.  
  35. <Directory /var/www/>
  36. Options Indexes FollowSymLinks MultiViews
  37. AllowOverride None
  38. Order allow,deny
  39. allow from all
  40. </Directory>
  41.  
  42. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  43. <Directory "/usr/lib/cgi-bin">
  44. AllowOverride None
  45. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  46. Order allow,deny
  47. Allow from all
  48. </Directory>
  49.  
  50. ErrorLog ${APACHE_LOG_DIR}/error.log
  51.  
  52. # Possible values include: debug, info, notice, warn, error, crit,
  53. # alert, emerg.
  54. LogLevel warn
  55.  
  56. CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
  57.  
  58. Alias /doc/ "/usr/share/doc/"
  59. <Directory "/usr/share/doc/">
  60. Options Indexes MultiViews FollowSymLinks
  61. AllowOverride None
  62. Order deny,allow
  63. Deny from all
  64. Allow from 127.0.0.0/255.0.0.0 ::1/128
  65. </Directory>
  66.  
  67. # SSL Engine Switch:
  68. # Enable/Disable SSL for this virtual host.
  69. SSLEngine on
  70.  
  71. SSLCertificateFile /etc/apache2/ssl/apache.pem
  72. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  73.  
  74. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  75. SSLOptions +StdEnvVars
  76. </FilesMatch>
  77. <Directory /usr/lib/cgi-bin>
  78. SSLOptions +StdEnvVars
  79. </Directory>
  80.  
  81. BrowserMatch "MSIE [2-6]" \
  82. nokeepalive ssl-unclean-shutdown \
  83. downgrade-1.0 force-response-1.0
  84. # MSIE 7 and newer should be able to use keepalive
  85. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  86.  
  87. </VirtualHost>
  88. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement