Enabling 'Authentication Required' makes site inaccessible
Added by Siddharth Misra almost 13 years ago
Hi,
My redmine install is on a subdomain redmine.domain.com and the site is running on a VPS (centos) managed by cPanel.
I have already got another instance working fine on a ubuntu server (self install), but on this one (installed by vps support personnel) there are two issues :
1- Once logged in, unable to logout
2- If "Authentication required" option is enabled in Settings, only logged in users can visit site, others get 404 error.
I am fairly good at configuring servers but am more used to the LAMP environment and quite the n00b at ruby/rails, so a few hints will also do :)
Replies (3)
RE: Enabling 'Authentication Required' makes site inaccessible
-
Added by Mischa The Evil over 12 years ago
Siddharth Misra wrote:
That isn't the expected behavior when a user clicks "Sign out". What's in your logs about this?1- Once logged in, unable to logout
2- If "Authentication required" option is enabled in Settings, only logged in users can visit site, others get 404 error.
That is sort of the expected behavior... See RedmineSettings#Authentication-required. Anonymous users should be redirected to the login page instead, IIRC.
RE: Enabling 'Authentication Required' makes site inaccessible
-
Added by Siddharth Misra over 12 years ago
1- Once logged in, unable to logout
That isn't the expected behavior when a user clicks "Sign out". What's in your logs about this?
Which particular log are you referring to? I checked in the mongrel log but didn't see any new entry after trying sign out.
2- If "Authentication required" option is enabled in Settings, only logged in users can visit site, others get 404 error.
That is sort of the expected behavior... See RedmineSettings#Authentication-required. Anonymous users should be redirected to the login page instead, IIRC.
I think you misunderstood me. Logged in users can see redmine. Those who are not, get 404 (site not found) on the browser. There is no redirect to login page.
RE: Enabling 'Authentication Required' makes site inaccessible
-
Added by Mischa The Evil over 12 years ago
Siddharth Misra wrote:
Which particular log are you referring to? I checked in the mongrel log but didn't see any new entry after trying sign out.
I mean the logs in {{REDMINE_ROOT}}/log/production.log
assuming you are running Redmine in production mode. I understand you are using mongrel to serve Redmine. I know there are/were several issues with it running current Redmine versions, though I haven't used mongrel myself for a long time so can't actually help on this.
I think you misunderstood me. Logged in users can see redmine. Those who are not, get 404 (site not found) on the browser. There is no redirect to login page.
Indeed, that is unexpected and unwanted behavior. I think it is most-likely caused by the issues with mongrel itself or the way it is configured.