aboutsummaryrefslogblamecommitdiffstats
path: root/railties/configs/apache.conf
blob: 499477c57b0493e401e6b2cbf05de25cc2b04d90 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                
                

                                   
                                   
                                           
 

                                           
# 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