aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 22:02:22 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 22:02:22 +0000
commita61360688cd0e1f43f523866384d0d0796a4ea73 (patch)
treedfa09275f2165b1af8363642b67d85b5702cf793 /railties
parentee8d110068e958b400987b5f224e14e292fd0558 (diff)
downloadrails-a61360688cd0e1f43f523866384d0d0796a4ea73.tar.gz
rails-a61360688cd0e1f43f523866384d0d0796a4ea73.tar.bz2
rails-a61360688cd0e1f43f523866384d0d0796a4ea73.zip
Changed .htaccess to allow dispatch.* to be called from a sub-directory as part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] Fixed routing and helpers to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/CHANGELOG2
-rwxr-xr-xrailties/configs/apache.conf15
2 files changed, 15 insertions, 2 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 97dfd34ce2..99a86a00bc 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Changed .htaccess to allow dispatch.* to be called from a sub-directory as part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke]
+
* Added script/runner which can be used to run code inside the environment by eval'ing the first parameter. Examples:
./script/runner 'ReminderService.deliver'
diff --git a/railties/configs/apache.conf b/railties/configs/apache.conf
index 499477c57b..f24e1753fc 100755
--- a/railties/configs/apache.conf
+++ b/railties/configs/apache.conf
@@ -4,11 +4,22 @@ AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
# Redirect all requests not available on the filesystem to Rails
+# By default the cgi dispatcher is used which is very slow
+#
+# For better performance replace the dispatcher with the fastcgi one
+#
+# Example:
+# RewriteRule ^(.*)$ dispatch.fcgi?$1 [QSA,L]
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]
+RewriteRule ^(.*)$ dispatch.cgi?$1 [QSA,L]
# In case Rails experiences terminal errors
-ErrorDocument 500 /500.html \ No newline at end of file
+# Instead of displaying this message you can supply a file here which will be rendered instead
+#
+# Example:
+# ErrorDocument 500 /500.html
+
+ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" \ No newline at end of file