Advertisement
Guest User

apache

a guest
Feb 12th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1.  
  2. /etc/apache2/sites-enabled/
  3. <virtualhost *:443>
  4.  
  5. DocumentRoot /var/www
  6. ServerName domain.ch
  7. CustomLog /var/log/apache2/www.domain.log common
  8.  
  9. SSLEngine on
  10. SSLCertificateKeyFile /etc/ssl/myserver.key
  11. SSLCertificateFile /etc/ssl/www_domain_ch.crt
  12. SSLCertificateChainFile /etc/ssl/www_domain_ch.ca-bundle
  13.  
  14. </VirtualHost>
  15.  
  16. /etc/apache2/sites-enabled/000-default
  17. <VirtualHost *:80>
  18. ServerAdmin webmaster@localhost
  19.  
  20. DocumentRoot /var/www
  21. <Directory />
  22. Options FollowSymLinks
  23. AllowOverride None
  24. </Directory>
  25. <Directory /var/www/>
  26. Options Indexes FollowSymLinks MultiViews
  27. AllowOverride None
  28. Order allow,deny
  29. allow from all
  30. </Directory>
  31.  
  32. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  33. <Directory "/usr/lib/cgi-bin">
  34. AllowOverride None
  35. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  36. Order allow,deny
  37. Allow from all
  38. </Directory>
  39.  
  40. ErrorLog ${APACHE_LOG_DIR}/error.log
  41.  
  42. # Possible values include: debug, info, notice, warn, error, crit,
  43. # alert, emerg.
  44. LogLevel warn
  45.  
  46. CustomLog ${APACHE_LOG_DIR}/access.log combined
  47.  
  48. Alias /doc/ "/usr/share/doc/"
  49. <Directory "/usr/share/doc/">
  50. Options Indexes MultiViews FollowSymLinks
  51. AllowOverride None
  52. Order deny,allow
  53. Deny from all
  54. Allow from 127.0.0.0/255.0.0.0 ::1/128
  55. </Directory>
  56.  
  57. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement