You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # General Apache options
  2. <IfModule mod_fastcgi.c>
  3. AddHandler fastcgi-script .fcgi
  4. </IfModule>
  5. <IfModule mod_fcgid.c>
  6. AddHandler fcgid-script .fcgi
  7. </IfModule>
  8. <IfModule mod_cgi.c>
  9. AddHandler cgi-script .cgi
  10. </IfModule>
  11. Options +FollowSymLinks +ExecCGI
  12. # If you don't want Rails to look in certain directories,
  13. # use the following rewrite rules so that Apache won't rewrite certain requests
  14. #
  15. # Example:
  16. # RewriteCond %{REQUEST_URI} ^/notrails.*
  17. # RewriteRule .* - [L]
  18. # Redirect all requests not available on the filesystem to Rails
  19. # By default the cgi dispatcher is used which is very slow
  20. #
  21. # For better performance replace the dispatcher with the fastcgi one
  22. #
  23. # Example:
  24. # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  25. RewriteEngine On
  26. # If your Rails application is accessed via an Alias directive,
  27. # then you MUST also set the RewriteBase in this htaccess file.
  28. #
  29. # Example:
  30. # Alias /myrailsapp /path/to/myrailsapp/public
  31. # RewriteBase /myrailsapp
  32. RewriteRule ^$ index.html [QSA]
  33. RewriteRule ^([^.]+)$ $1.html [QSA]
  34. RewriteCond %{REQUEST_FILENAME} !-f
  35. <IfModule mod_fastcgi.c>
  36. RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  37. </IfModule>
  38. <IfModule mod_fcgid.c>
  39. RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  40. </IfModule>
  41. <IfModule mod_cgi.c>
  42. RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
  43. </IfModule>
  44. # In case Rails experiences terminal errors
  45. # Instead of displaying this message you can supply a file here which will be rendered instead
  46. #
  47. # Example:
  48. # ErrorDocument 500 /500.html
  49. ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"