Guest User

000-default.conf

a guest
Mar 25th, 2015
994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 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. Require all granted
  17. </Directory>
  18.  
  19. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  20. <Directory "/usr/lib/cgi-bin">
  21. AllowOverride None
  22. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  23. Require all granted
  24. </Directory>
  25.  
  26. ErrorLog ${APACHE_LOG_DIR}/error.log
  27.  
  28. # Possible values include: debug, info, notice, warn, error, crit,
  29. # alert, emerg.
  30. LogLevel warn
  31.  
  32. CustomLog ${APACHE_LOG_DIR}/access.log combined
  33.  
  34. Alias /doc/ "/usr/share/doc/"
  35. <Directory "/usr/share/doc/">
  36. Options Indexes MultiViews FollowSymLinks
  37. AllowOverride None
  38. Require host 127.0.0.0/255.0.0.0 ::1/128
  39. </Directory>
  40.  
  41. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment