aboutsummaryrefslogblamecommitdiffstats
path: root/railties/configs/apache.conf
blob: 28c4c57aad2fe9b367e55775696ae93633f1d361 (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
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]

# In case Rails experiences terminal errors
ErrorDocument 500 /500.html