1. # ------------------------------------------------------------------------------
  2. # | General Apache Settings |
  3. # ------------------------------------------------------------------------------
  4. DirectoryIndex index.php index.html
  5. HostnameLookups Off
  6. Options +Indexes
  7. <Directory />
  8. AllowOverride None
  9. </Directory>
  10. # ------------------------------------------------------------------------------
  11. # | FastCGI Settings |
  12. # ------------------------------------------------------------------------------
  13. <IfModule mod_fcgid.c>
  14. <Directory />
  15. AddHandler fcgid-script .php
  16. FCGIWrapper /usr/lib/cgi-bin/php5 .php
  17. Options +ExecCGI
  18. </Directory>
  19. </IfModule>
  20. # ------------------------------------------------------------------------------
  21. # | 404 error prevention for non-existing redirected folders |
  22. # ------------------------------------------------------------------------------
  23. Options -MultiViews
  24. # ------------------------------------------------------------------------------
  25. # | Rewrite engine |
  26. # ------------------------------------------------------------------------------
  27. <IfModule mod_rewrite.c>
  28. Options +FollowSymlinks
  29. RewriteEngine On
  30. </IfModule>