Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName skooli.dev
  3. ServerAlias www.skooli.dev
  4.  
  5. RewriteEngine On
  6. RewriteCond %{HTTPS} off
  7. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  8.  
  9. ServerAdmin mario@teachaway.com
  10. DocumentRoot /var/www/skooli/web
  11.  
  12. ErrorLog ${APACHE_LOG_DIR}/skooli.error.log
  13. CustomLog ${APACHE_LOG_DIR}/skooli.access.log combined
  14.  
  15. <Directory "/var/www/skooli">
  16. Options FollowSymLinks
  17. AllowOverride All
  18.  
  19. Order allow,deny
  20. Allow from all
  21. </Directory>
  22. </VirtualHost>
  23.  
  24. <IfModule mod_ssl.c>
  25. <VirtualHost *:443>
  26. ServerAdmin mario@teachaway.com
  27.  
  28. ServerName skooli.dev
  29. ServerAlias www.skooli.dev
  30.  
  31. DocumentRoot /var/www/skooli/web
  32.  
  33. ErrorLog ${APACHE_LOG_DIR}/error.log
  34. CustomLog ${APACHE_LOG_DIR}/access.log combined
  35.  
  36. SSLEngine on
  37.  
  38. SSLCertificateFile /etc/apache2/ssl/apache.crt
  39. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  40.  
  41. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  42. SSLOptions +StdEnvVars
  43. </FilesMatch>
  44. <Directory "/var/www/skooli">
  45. Options FollowSymLinks
  46. AllowOverride All
  47.  
  48. Order allow,deny
  49. Allow from all
  50. </Directory>
  51. <Directory /usr/lib/cgi-bin>
  52. SSLOptions +StdEnvVars
  53. </Directory>
  54.  
  55. BrowserMatch "MSIE [2-6]" \
  56. nokeepalive ssl-unclean-shutdown \
  57. downgrade-1.0 force-response-1.0
  58. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  59.  
  60. </VirtualHost>
  61. </IfModule>
  62.  
  63. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement