Guest User

Untitled

a guest
Feb 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. ## .htaccess
  2. # General Apache options
  3. AddHandler fastcgi-script .fcgi
  4. AddHandler cgi-script .cgi
  5. Options +FollowSymLinks +ExecCGI
  6.  
  7. # If you don't want Rails to look in certain directories,
  8. # use the following rewrite rules so that Apache won't rewrite certain requests
  9. #
  10. # Example:
  11. # RewriteCond %{REQUEST_URI} ^/notrails.*
  12. # RewriteRule .* - [L]
  13.  
  14. # Redirect all requests not available on the filesystem to Rails
  15. # By default the cgi dispatcher is used which is very slow
  16. #
  17. # For better performance replace the dispatcher with the fastcgi one
  18. #
  19. # Example:
  20. # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  21. RewriteEngine On
  22.  
  23. # If your Rails application is accessed via an Alias directive,
  24. # then you MUST also set the RewriteBase in this htaccess file.
  25. #
  26. # Example:
  27. # Alias /myrailsapp /path/to/myrailsapp/public
  28. # RewriteBase /myrailsapp
  29.  
  30. RewriteRule ^$ index.html [QSA]
  31. RewriteRule ^([^.]+)$ $1.html [QSA]
  32. RewriteCond %{REQUEST_FILENAME} !-f
  33. RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
  34.  
  35. # In case Rails experiences terminal errors
  36. # Instead of displaying this message you can supply a file here which will be rendered instead
  37. #
  38. # Example:
  39. # ErrorDocument 500 /500.html
  40.  
  41. ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
Add Comment
Please, Sign In to add comment