apache.vhost 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ##
  2. ## apache.vhost -- Apache Virtual Host Configuration Template
  3. ## ______________________________________________________
  4. ##
  5. ## PLEASE DO NOT EDIT THIS TEMPLATE!! COPY IT TO "apache.vhost-xxx",
  6. ## REMOVE THIS COMMENT AND EDIT THAT FILE INSTEAD, PLEASE!
  7. ## ______________________________________________________
  8. ##
  9. <VirtualHost www.foo.com:80>
  10. # server information
  11. ServerName www.foo.com
  12. ServerAlias www.foo.net www.foo.org
  13. ServerAdmin webmaster@foo.com
  14. ServerSignature on
  15. ServerTokens Full
  16. # document area
  17. DocumentRoot /home/foo/htdocs/
  18. <Directory "/home/foo/htdocs/">
  19. Options Indexes FollowSymLinks MultiViews
  20. AllowOverride None
  21. Order allow,deny
  22. Allow from all
  23. </Directory>
  24. # executable area
  25. ScriptAlias /cgi-bin/ /home/foo/cgi-bin/
  26. <Directory "/home/foo/cgi-bin">
  27. Options Indexes FollowSymLinks MultiViews ExecCGI
  28. AllowOverride None
  29. Order allow,deny
  30. Allow from all
  31. </Directory>
  32. # logging
  33. CustomLog /home/foo/logs/access.log common
  34. ErrorLog /home/foo/logs/error.log
  35. LogLevel warn
  36. </VirtualHost>