Skip to content

Commit

Permalink
Made apache start out on cgi and added back the default apache options
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Feb 15, 2005
1 parent 55b6e88 commit d4aead0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions railties/configs/apache.conf
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,12 @@
# 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 RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L] RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]


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

0 comments on commit d4aead0

Please sign in to comment.