[SOLVED] Small issue when logging out of redmine... (CentOS, Apache, Passenger, ProxyPass)
Added by Pascal Baumgartner almost 14 years ago
Hi all,
I have a small issue with redmine/apache/passenger on CentOS.
My Setup:
Redmine is accessed via a proxy.
The configuration from apache/httpd.conf on the proxy:
<Location /redmine>
ProxyPass http://redmine.host.com
ProxyPassReverse http://redmine.host.com
Options Indexes ExecCGI FollowSymLinks -MultiViews
Order Allow,Deny
Allow from all
</Location>
apache/httpd.conf from the redmine.host:
<VirtualHost w.x.y.z:80>
ServerAdmin webmaster@example.com
DocumentRoot /var/www/redmine/public
ServerName redmine.host.com
<Directory /var/www/redmine/public>
Options Indexes ExecCGI FollowSymLinks -MultiViews
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>
And to have the links and CSS work on a connection over the proxy server I had to add the following to redmine/config/environment.rb:
config.action_controller.relative_url_root = '/redmine'
I now can access the redmine installation by going to https://some.domain.com/redmine and then ProxyPass and ActionController do the rest for me. Like this everything is working fine, until I logout.
When I hit the "Sign out"-Link the site falls back to http only and says "THE PAGE YOU REQUESTED CANNOT BE FOUND" instead of going back to the start page.
When I just move the cursor over the "Sign out"-Link I can see that https://some.domain.com/redmine/logout will be called. But after clicking the link it loads http://some.domain.com/redmine.
Long story short: How can I achieve that clicking the "Sign out"-Link leads me to https://some.domain.com/redmine istead of http://some.domain.com/redmine ?
Thanks for any help.
Update:
adding "RequestHeader set X_FORWARDED_PROTO 'https'" to the config of the virtualhost on the redmine.host solved the problem.