Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Created October 12, 2008 19:26
Show Gist options
  • Select an option

  • Save adelcambre/16457 to your computer and use it in GitHub Desktop.

Select an option

Save adelcambre/16457 to your computer and use it in GitHub Desktop.
andy@hiro:...merb/merb-more% cat merb-gen/lib/generators/templates/application/common/dothtaccess sprint
# Sets the default handler for FastCGI scripts
AddHandler fastcgi-script .fcgi
# If Apache2 is used together with mod_fcgid,
# uncomment the line below and comment in the line
# above to set the correct script handler
#AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ merb.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application Error</h2>Merb could not be reached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment