Advertisement
Mr_media

defaultVhost

Dec 10th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. This is in the default vhost.conf there is no default ssl.conf!:
  2.  
  3.  
  4. NameVirtualHost *:80
  5.  
  6. <VirtualHost *:80>
  7. ServerAdmin webmaster@localhost
  8.  
  9. DocumentRoot /var/www/
  10. <Directory />
  11. Options +FollowSymLinks +MultiViews
  12. AllowOverride all
  13. </Directory>
  14. <Directory /var/www/>
  15. Options +Indexes +FollowSymLinks +MultiViews
  16. AllowOverride all
  17. #Order allow,deny
  18. #allow from all
  19. Require all granted
  20. </Directory>
  21.  
  22. #### error-log instellingen
  23.  
  24. ErrorLog /var/log/apache2/error.log
  25. # Possible values include: debug, info, notice, warn, error, crit,
  26. # alert, emerg.
  27. LogLevel warn
  28. CustomLog /var/log/apache2/access.log combined
  29. ServerSignature On
  30. Alias /doc/ "/usr/share/doc/"
  31. <Directory "/usr/share/doc/">
  32. Options +Indexes +MultiViews +FollowSymLinks
  33. AllowOverride all
  34. Order deny,allow
  35. Deny from all
  36. Allow from 127.0.0.0/255.0.0.0 ::1/128
  37. </Directory>
  38. </VirtualHost>
  39.  
  40.  
  41. ############################
  42.  
  43. #from here the vhosts for other vhosts without ssl
  44. #vanaf hier de virtual hosts voor de diverse domeinnamen neerzetten die op de server staan -----
  45. ##### ##### ##### ###### ####
  46. <VirtualHost *:80>
  47. DocumentRoot "/var/www/www.h-kracht.nl/www"
  48. ServerName www.h-kracht.nl
  49. ServerAlias www.h-kracht.nl h-kracht.nl
  50. <Directory "/var/www/www.h-kracht.nl/www">
  51. Options -Indexes
  52. AllowOverride all
  53. </Directory>
  54. LogLevel alert rewrite:trace3
  55. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement