Multi redmine in subfolders: Authentication
Added by Tony Marschall almost 14 years ago
Hello,
i have installed multiple redmine installations in subfolders like:
- domain.tld/dev1
- domain.tld/dev2
- domain.tld/dev3
Everything is running fine except of authentication. I can login in one installation, but by switching to the second i got logged out.
Is there some configuration i have to change?
Thanks
Replies (4)
RE: Multi redmine in subfolders: Authentication
-
Added by Tony Marschall over 13 years ago
Seems like this is a cookie session_path problem. I found a ticket about this (http://www.redmine.org/issues/3968) but cant get it work / find documentation.
RE: Multi redmine in subfolders: Authentication
-
Added by Tony Marschall over 13 years ago
Ok, found the documentation & solution.
lib/tasks/initializers.rake
... # This file was generated by 'rake config/initializers/session_store.rb', # and should not be made visible to public. # If you have a load-balancing Redmine cluster, you will need to use the # same version of this file on each machine. And be sure to restart your # server when you modify this file. # Your secret key for verifying cookie session data integrity. If you # change this key, all old sessions will become invalid! Make sure the # secret is at least 30 characters and all random, no regular words or # you'll be exposed to dictionary attacks. ActionController::Base.session = { :key => '_redmine_session', # # Uncomment and edit the :session_path below if are hosting your Redmine # at a suburi and don't want the top level path to access the cookies # # See: http://www.redmine.org/issues/3968 # # :session_path => '/url_path_to/your/redmine/', :secret => '#{secret}' } EOF ...
and restart.
RE: Multi redmine in subfolders: Authentication
-
Added by Tony Marschall over 13 years ago
mh, still not working. i also changed :key in each subinstallation. any ideas?
RE: Multi redmine in subfolders: Authentication
-
Added by Tony Marschall over 13 years ago
Working now, i had to change above settings in config/initializers/session_store.rb