Project

General

Profile

.htaccess configuration in hosting platforms

Added by Rodrigo Vilar about 4 years ago

Hi all,

I have installed redmine on a hosting platform that requires htaccess configuration and I do not manage to get everything right. Please note that I have installed the same version at my computer at home without htacces and I do not get any problem.

I have tried the following:

1st try, configuring the two required rails item on this hosting platform.

.htaccess
RailsBaseURI /redmine
RailsEnv production

result
I can correctly access /redmine/
404 on any subdir (i.e.: /redmine/my/account)

2nd try combining hosting platform required lines with those from htaccess.fcgi.example from redmine, I have also copied dispatch.fcgi.example to dispatch.fcgi

.htaccess
RailsBaseURI /redmine
RailsEnv production
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
</IfModule>
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
</IfModule>
Options FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule $ index.html [QSA]
RewriteRule ^([
.]
)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
<IfModule mod_fastcgi.c>
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
<IfModule mod_fcgid.c>
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"

results
I can access all the subdirs.
However, the buttons that should launch a modal window do not work, I must launch them on a new tab
(i.e.: new member on projects, redmine/projects/proyecto-de-pruebas/memberships/new)

I would appreciate help to get that working correctly.

Thanks,

Rodrigo

Operating System
Linux Debian GNU/Linux 8.11 (jessie)

Environment:
Redmine version 4.1.0.stable
Ruby version 2.3.8-p459 (2018-10-18) [x86_64-linux]
Rails version 5.2.4.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery sendmail