mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
48a44b77c1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
14 lines
No EOL
420 B
ApacheConf
Executable file
14 lines
No EOL
420 B
ApacheConf
Executable file
# General Apache options
|
|
AddHandler fastcgi-script .fcgi
|
|
AddHandler cgi-script .cgi
|
|
Options +FollowSymLinks +ExecCGI
|
|
|
|
# Redirect all requests not available on the filesystem to Rails
|
|
RewriteEngine On
|
|
RewriteRule ^$ index.html [QSA]
|
|
RewriteRule ^([^.]+)$ $1.html [QSA]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]
|
|
|
|
# In case Rails experiences terminal errors
|
|
ErrorDocument 500 /500.html |