annotate .svn/pristine/81/813d4652d70815bee6e19eb669005e506172f07f.svn-base @ 1295:622f24f53b42 redmine-2.3

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