Sha256: b0efe186eb275c8b41ae02f80a8e3e4026fbd507d7979ecdc7a91dc5e5912a82

Contents?: true

Size: 1.22 KB

Versions: 755

Compression:

Stored size: 1.22 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]

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

Version data entries

755 entries across 735 versions & 50 rubygems

Version Path
radiant-tags-extension-1.6.10 vendor/plugins/has_many_polymorphs/test/integration/app/public/.htaccess
zena-1.2.8 public/.htaccess
statemachine-2.3.0 rails_plugin/public/.htaccess
carlosbrando-remarkable-0.0.99 spec/rails_root/public/.htaccess
carlosbrando-remarkable-2.2.1 spec/rails_root/public/.htaccess
cehoffman-acts_as_ferret-0.4.4 doc/demo/public/.htaccess
jcnetdev-shoulda-4.2 test/rails_root/public/.htaccess
jkraemer-acts_as_ferret-0.4.4 doc/demo/public/.htaccess
pelle-ruby-openid-2.1.8 examples/rails_openid/public/.htaccess
passenger-4.0.30 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.29 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.28 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.27 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.26 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.25 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.24 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.23 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.21 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.20 test/stub/rails_apps/1.2/empty/public/.htaccess
passenger-4.0.19 test/stub/rails_apps/1.2/empty/public/.htaccess