annotate .svn/pristine/65/65c4d0cb8c8282f190e809331350172b32319080.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 # General Apache options
Chris@909 2 <IfModule mod_fastcgi.c>
Chris@909 3 AddHandler fastcgi-script .fcgi
Chris@909 4 </IfModule>
Chris@909 5 <IfModule mod_fcgid.c>
Chris@909 6 AddHandler fcgid-script .fcgi
Chris@909 7 </IfModule>
Chris@909 8 <IfModule mod_cgi.c>
Chris@909 9 AddHandler cgi-script .cgi
Chris@909 10 </IfModule>
Chris@909 11 Options +FollowSymLinks +ExecCGI
Chris@909 12
Chris@909 13 # If you don't want Rails to look in certain directories,
Chris@909 14 # use the following rewrite rules so that Apache won't rewrite certain requests
Chris@909 15 #
Chris@909 16 # Example:
Chris@909 17 # RewriteCond %{REQUEST_URI} ^/notrails.*
Chris@909 18 # RewriteRule .* - [L]
Chris@909 19
Chris@909 20 # Redirect all requests not available on the filesystem to Rails
Chris@909 21 # By default the cgi dispatcher is used which is very slow
Chris@909 22 #
Chris@909 23 # For better performance replace the dispatcher with the fastcgi one
Chris@909 24 #
Chris@909 25 # Example:
Chris@909 26 # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
Chris@909 27 RewriteEngine On
Chris@909 28
Chris@909 29 # If your Rails application is accessed via an Alias directive,
Chris@909 30 # then you MUST also set the RewriteBase in this htaccess file.
Chris@909 31 #
Chris@909 32 # Example:
Chris@909 33 # Alias /myrailsapp /path/to/myrailsapp/public
Chris@909 34 # RewriteBase /myrailsapp
Chris@909 35
Chris@909 36 RewriteRule ^$ index.html [QSA]
Chris@909 37 RewriteRule ^([^.]+)$ $1.html [QSA]
Chris@909 38 RewriteCond %{REQUEST_FILENAME} !-f
Chris@909 39 <IfModule mod_fastcgi.c>
Chris@909 40 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
Chris@909 41 </IfModule>
Chris@909 42 <IfModule mod_fcgid.c>
Chris@909 43 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
Chris@909 44 </IfModule>
Chris@909 45 <IfModule mod_cgi.c>
Chris@909 46 RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
Chris@909 47 </IfModule>
Chris@909 48
Chris@909 49 # In case Rails experiences terminal errors
Chris@909 50 # Instead of displaying this message you can supply a file here which will be rendered instead
Chris@909 51 #
Chris@909 52 # Example:
Chris@909 53 # ErrorDocument 500 /500.html
Chris@909 54
Chris@909 55 ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"