Sha256: f1aa68f718c591ed05d96364bd836d380786fe9a774a532a5a500a67af6a5fd4

Contents?: true

Size: 1.26 KB

Versions: 27

Compression:

Stored size: 1.26 KB

Contents

# 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]

<IfModule mod_rewrite.c>
# 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]
</IfModule>

# 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"

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
passenger-4.0.41 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.40 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.39 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.38 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.37 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.36 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.35 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.34 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.33 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.32 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.31 test/stub/rails2.3-mycook/public/.htaccess
passenger-4.0.30 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.29 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.28 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.27 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.26 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.25 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.24 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.23 test/stub/rails_apps/2.3/mycook/public/.htaccess
passenger-4.0.21 test/stub/rails_apps/2.3/mycook/public/.htaccess