Chris@0: # General Apache options Chris@0: Chris@0: AddHandler fastcgi-script .fcgi Chris@0: Chris@0: Chris@0: AddHandler fcgid-script .fcgi Chris@0: Chris@0: Chris@0: AddHandler cgi-script .cgi Chris@0: Chris@0: Options +FollowSymLinks +ExecCGI Chris@0: Chris@0: # If you don't want Rails to look in certain directories, Chris@0: # use the following rewrite rules so that Apache won't rewrite certain requests Chris@0: # Chris@0: # Example: Chris@0: # RewriteCond %{REQUEST_URI} ^/notrails.* Chris@0: # RewriteRule .* - [L] Chris@0: Chris@0: # Redirect all requests not available on the filesystem to Rails Chris@0: # By default the cgi dispatcher is used which is very slow Chris@0: # Chris@0: # For better performance replace the dispatcher with the fastcgi one Chris@0: # Chris@0: # Example: Chris@0: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] Chris@0: RewriteEngine On Chris@0: Chris@0: # If your Rails application is accessed via an Alias directive, Chris@0: # then you MUST also set the RewriteBase in this htaccess file. Chris@0: # Chris@0: # Example: Chris@0: # Alias /myrailsapp /path/to/myrailsapp/public Chris@0: # RewriteBase /myrailsapp Chris@0: Chris@0: RewriteRule ^$ index.html [QSA] Chris@0: RewriteRule ^([^.]+)$ $1.html [QSA] Chris@0: RewriteCond %{REQUEST_FILENAME} !-f Chris@0: Chris@0: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] Chris@0: Chris@0: Chris@0: RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] Chris@0: Chris@0: Chris@0: RewriteRule ^(.*)$ dispatch.cgi [QSA,L] Chris@0: Chris@0: Chris@0: # In case Rails experiences terminal errors Chris@0: # Instead of displaying this message you can supply a file here which will be rendered instead Chris@0: # Chris@0: # Example: Chris@0: # ErrorDocument 500 /500.html Chris@0: Chris@0: ErrorDocument 500 "

Application error

Rails application failed to start properly"