Guest User

000-default.conf

a guest
Nov 4th, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName yourdomain.com
  3. ServerAdmin webmaster@localhost
  4.  
  5. DocumentRoot /var/www
  6.  
  7. Redirect permanent / https://yourdomain.com/
  8.  
  9. <Directory />
  10. Options FollowSymLinks
  11. AllowOverride None
  12. </Directory>
  13. <Directory /var/www/>
  14. Options Indexes FollowSymLinks MultiViews
  15. AllowOverride None
  16. Order allow,deny
  17. allow from all
  18. </Directory>
  19.  
  20. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  21. <Directory "/usr/lib/cgi-bin">
  22. AllowOverride None
  23. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  24. Order allow,deny
  25. Allow from all
  26. </Directory>
  27.  
  28. ErrorLog ${APACHE_LOG_DIR}/error.log
  29.  
  30. # Possible values include: debug, info, notice, warn, error, crit,
  31. # alert, emerg.
  32. LogLevel warn
  33.  
  34. CustomLog ${APACHE_LOG_DIR}/access.log combined
  35.  
  36. Alias /doc/ "/usr/share/doc/"
  37. <Directory "/usr/share/doc/">
  38. Options Indexes MultiViews FollowSymLinks
  39. AllowOverride None
  40. Order deny,allow
  41. Deny from all
  42. Allow from 127.0.0.0/255.0.0.0 ::1/128
  43. </Directory>
  44.  
  45. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment