aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLloyd Pick <lloydpick@gmail.com>2009-06-08 12:35:57 +0100
committerLloyd Pick <lloydpick@gmail.com>2009-06-08 12:35:57 +0100
commitd11a86069c4cc0f68553f9d228b14484bd852275 (patch)
tree1c262d745fc25d039af231d5df55820d7faa23be
parentc6ce600bc5e2588ef08ef25ddf263024f7a7ff6e (diff)
downloadrails-d11a86069c4cc0f68553f9d228b14484bd852275.tar.gz
rails-d11a86069c4cc0f68553f9d228b14484bd852275.tar.bz2
rails-d11a86069c4cc0f68553f9d228b14484bd852275.zip
Cleaned up Apache .htaccess section of main README
-rw-r--r--railties/README76
1 files changed, 35 insertions, 41 deletions
diff --git a/railties/README b/railties/README
index eef062c39a..221e8486d1 100644
--- a/railties/README
+++ b/railties/README
@@ -28,7 +28,7 @@ link:files/vendor/rails/actionpack/README.html.
== Getting Started
1. At the command prompt, start a new Rails application using the <tt>rails</tt> command
- and your application name. Ex: rails myapp
+ and your application name. Ex: <tt>rails myapp</tt>
2. Change directory into myapp and start the web server: <tt>script/server</tt> (run with --help for options)
3. Go to http://localhost:3000/ and get "Welcome aboard: You're riding the Rails!"
4. Follow the guidelines to start developing your application
@@ -55,47 +55,41 @@ and receiving the proxied requests via one of several protocols (HTTP, CGI, FCGI
== Apache .htaccess example for FCGI/CGI
-# General Apache options
-AddHandler fastcgi-script .fcgi
-AddHandler cgi-script .cgi
-Options +FollowSymLinks +ExecCGI
-
-# If you don't want Rails to look in certain directories,
-# use the following rewrite rules so that Apache won't rewrite certain requests
-#
-# Example:
-# RewriteCond %{REQUEST_URI} ^/notrails.*
-# RewriteRule .* - [L]
-
-# 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 [QSA,L]
-RewriteEngine On
-
-# If your Rails application is accessed via an Alias directive,
-# then you MUST also set the RewriteBase in this htaccess file.
-#
-# Example:
-# Alias /myrailsapp /path/to/myrailsapp/public
-# RewriteBase /myrailsapp
-
-RewriteRule ^$ index.html [QSA]
-RewriteRule ^([^.]+)$ $1.html [QSA]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
-
-# In case Rails experiences terminal errors
-# 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"
+General Apache options
+ AddHandler fastcgi-script .fcgi
+ AddHandler cgi-script .cgi
+ Options +FollowSymLinks +ExecCGI
+
+If you don't want Rails to look in certain directories, use the following
+rewrite rules so that Apache won't rewrite certain requests.
+
+ RewriteCond %{REQUEST_URI} ^/notrails.*
+ RewriteRule .* - [L]
+
+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.
+
+ RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
+ RewriteEngine On
+
+If your Rails application is accessed via an Alias directive, then you MUST also
+set the RewriteBase in this htaccess file.
+
+ Alias /myrailsapp /path/to/myrailsapp/public
+ RewriteBase /myrailsapp
+
+ RewriteRule ^$ index.html [QSA]
+ RewriteRule ^([^.]+)$ $1.html [QSA]
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
+
+Incase Rails experiences terminal errors instead of displaying those messages you
+can supply a file here which will be rendered instead.
+
+ ErrorDocument 500 /500.html
+ ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
== Debugging Rails