Sha256: f03be5a14da78aa9cab63d4ef2e4edb6e98d6d34227dbed1c142ba66cef5762d

Contents?: true

Size: 909 Bytes

Versions: 6

Compression:

Stored size: 909 Bytes

Contents

# Assumes that follwing are set in ServerConfig or VirtualHost
#   JkMount /ajp-mounted/* ajprails
#   JkEnvVar SERVER_SOFTWARE NONE


Options +FollowSymLinks

# 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
RewriteEngine On
RewriteBase /example
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /ajp-mounted/$1 [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

6 entries across 6 versions & 1 rubygems

Version Path
ajp-rails-0.0.0 example/example.htaccess
ajp-rails-0.0.1 example/example.htaccess
ajp-rails-0.0.3 example/example.htaccess
ajp-rails-0.1.0 example/example.htaccess
ajp-rails-0.0.2 example/example.htaccess
ajp-rails-0.0.4 example/example.htaccess