1. <VirtualHost *:80>
  2. ServerAdmin webmaster@localhost
  3. DocumentRoot /var/www
  4. <Directory />
  5. Options FollowSymLinks
  6. AllowOverride None
  7. </Directory>
  8. <Directory /var/www/>
  9. Options Indexes FollowSymLinks MultiViews
  10. AllowOverride All
  11. Order allow,deny
  12. allow from all
  13. </Directory>
  14. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  15. <Directory "/usr/lib/cgi-bin">
  16. AllowOverride None
  17. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  18. Order allow,deny
  19. Allow from all
  20. </Directory>
  21. ErrorLog ${APACHE_LOG_DIR}/error.log
  22. # Possible values include: debug, info, notice, warn, error, crit,
  23. # alert, emerg.
  24. LogLevel warn
  25. CustomLog ${APACHE_LOG_DIR}/access.log combined
  26. Alias /doc/ "/usr/share/doc/"
  27. <Directory "/usr/share/doc/">
  28. Options Indexes MultiViews FollowSymLinks
  29. AllowOverride None
  30. Order deny,allow
  31. Deny from all
  32. Allow from 127.0.0.0/255.0.0.0 ::1/128
  33. </Directory>
  34. <IfModule mod_fcgid.c>
  35. SuexecUserGroup never never
  36. <Directory /var/www/>
  37. Options +ExecCGI
  38. AddHandler fcgid-script .php .phtml
  39. AddType application/x-httpd-php .php .phtml
  40. FCGIWrapper /var/www/cgi-bin/php-fcgid .php
  41. FCGIWrapper /var/www/cgi-bin/php-fcgid .phtml
  42. </Directory>
  43. </IfModule>
  44. </VirtualHost>