| 1 |
AddHandler fastcgi-script .fcgi |
|---|
| 2 |
#AddHandler cgi-script .cgi |
|---|
| 3 |
Options +FollowSymLinks +ExecCGI |
|---|
| 4 |
|
|---|
| 5 |
#DirectoryIndex index.html |
|---|
| 6 |
RewriteEngine On |
|---|
| 7 |
|
|---|
| 8 |
# RP code from: http://wiki.railsplayground.com/railsplayground/show/How+To+Use+Rails+at+RailsPlayground |
|---|
| 9 |
RewriteCond %{SCRIPT_FILENAME} -d |
|---|
| 10 |
RewriteCond %{SCRIPT_FILENAME} ^.*[^\/]$ |
|---|
| 11 |
RewriteRule ^(.*)$ $1/index.html [N] |
|---|
| 12 |
|
|---|
| 13 |
RewriteRule ^$ index.html [QSA] |
|---|
| 14 |
RewriteRule ^([^.]+)$ $1.html [QSA] |
|---|
| 15 |
RewriteCond %{REQUEST_FILENAME} !-f |
|---|
| 16 |
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] |
|---|
| 17 |
|
|---|
| 18 |
# If you don't want Rails to look in certain directories, |
|---|
| 19 |
# use the following rewrite rules so that Apache won't rewrite certain requests |
|---|
| 20 |
# |
|---|
| 21 |
# Example: |
|---|
| 22 |
# RewriteCond %{REQUEST_URI} ^/notrails.* |
|---|
| 23 |
# RewriteRule .* - [L] |
|---|
| 24 |
|
|---|
| 25 |
#RewriteEngine On |
|---|
| 26 |
#RewriteCond %{SCRIPT_FILENAME} -d |
|---|
| 27 |
#RewriteCond %{SCRIPT_FILENAME} ^.*[^\/]$ |
|---|
| 28 |
#RewriteRule ^(.*)$ $1/ [N] |
|---|
| 29 |
|
|---|
| 30 |
#RewriteBase ~jm/jm3.net/public/ |
|---|
| 31 |
#RewriteBase /home/jm/jm3.net/public |
|---|
| 32 |
#RewriteRule ^$ index.html [QSA] |
|---|
| 33 |
#RewriteRule ^([^.]+)$ $1.html [QSA] |
|---|
| 34 |
#RewriteCond %{REQUEST_FILENAME} !-f |
|---|
| 35 |
#RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] |
|---|
| 36 |
|
|---|
| 37 |
# handle trailing slash bug thing |
|---|
| 38 |
#RewriteRule ^hybrid/?$ http://jm3.net/hybrid/index.html [L] |
|---|
| 39 |
#RewriteRule ^$ index.html [QSA] |
|---|
| 40 |
|
|---|
| 41 |
#RewriteRule ^car/?$ http://jm3.net/car/index.html [L] |
|---|
| 42 |
#RewriteRule ^pxl/?$ http://jm3.net/pxl/index.html [L] |
|---|
| 43 |
#RewriteCond %{REQUEST_URI} ^/(resume|film|video).* |
|---|
| 44 |
|
|---|
| 45 |
#RewriteRule ^photos/?$ http://flickr.com/photos/jm3 [L] |
|---|
| 46 |
#RewriteRule ^rss.xml http://feeds.feedburner.com/jm3 [L] |
|---|
| 47 |
|
|---|
| 48 |
#ErrorDocument 500 "<h2>ugh, stupid 500 error</h2>Rails application failed to start properly" |
|---|