Project

General

Profile

When I remove the attached file redmine gives error 500

Added by I I over 15 years ago

When I remove the attached file redmine gives error 500, but the file that is removed, as seen when reloading the page with the attachment again. What could be wrong?

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

Replies (1)

RE: When I remove the attached file redmine gives error 500 - Added by I I over 15 years ago

sorry - .htaccess attached now to this post.

    (1-1/1)