Koozali.org: home of the SME Server

Redirection problem

Offline ElFroggio

  • *
  • 262
  • +0/-0
Redirection problem
« on: May 21, 2014, 06:42:13 PM »
Hi,

I already posted the question under the contribs forum, but upon further thought, I think that it's a problem (for me) with SME itself. It automatically redirect http:// to https://

I have SME 8.1 and I installed the userpanel contrib for the people to do their own vacation and that works.

The problem is that I also have Drupal 7 running for a couple of websites and now the Drupal users can't log into Drupal because whenever they type the website/user (the standard way of logging into Drupal, they get redirected from http:// to https:// and get the SME: "Welcome to sme/username/password"

How can I prevent that redirection, so that https://.../user gets me to SME and that http://.../user gets me to Drupal

Thanks

Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Redirection problem
« Reply #1 on: May 21, 2014, 11:09:00 PM »
ElFroggio

Have you fully updated your server in the last day ?

There was a feature released a month or two ago, to force https on ibays where that option was configured in server manager, but an earlier release of the update forced https on all ibays by default (unwittingly).
Running yum update should fix it, if that is your problem.

You should also look at each ibay setting in server manager to see how the force https setting is configured.

Otherwise your problem is somewhere else, ie maybe some custom template etc that forces https, which has been described in a Howto
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Redirection problem
« Reply #2 on: May 21, 2014, 11:35:42 PM »
ElFroggio

Have you fully updated your server in the last day ?

There was a feature released a month or two ago, to force https on ibays where that option was configured in server manager, but an earlier release of the update forced https on all ibays by default (unwittingly).
Running yum update should fix it, if that is your problem.

You should also look at each ibay setting in server manager to see how the force https setting is configured.

Otherwise your problem is somewhere else, ie maybe some custom template etc that forces https, which has been described in a Howto

I'm up-to-date on 8.1. I didn't notice that change, so I just checked and both have: Force secure connections as "Disabled" but somehow it still redirect to https://. I think that it has to do with the control-panel user vacation that uses "/user" and Drupal also using "/user". But both Drupal sites are not in the primary ibay. The control panel of the user-vacatin "/user" should be applied only to the Primary ibay.

I have no custom template that redirects from http:// to https:// (that I know off or that I installed myself)

I hope that my wording makes sense, if not I do apologize, English is not my first nor second language.

Thanks

Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Redirection problem
« Reply #3 on: May 21, 2014, 11:41:23 PM »
ElFroggio

Try removing the user manager/vacation contrib, does that fix your problem ?
At least that may identify the source of the issue, & then a fix or workaround can be considered.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ElFroggio

  • *
  • 262
  • +0/-0
Re: Redirection problem
« Reply #4 on: May 22, 2014, 12:02:58 AM »
ElFroggio

Try removing the user manager/vacation contrib, does that fix your problem ?
At least that may identify the source of the issue, & then a fix or workaround can be considered.
I have and now I'm back to normal. So it looks like having the user-vacation enabled with the the "/user", redirects the http:// to https:// on all the ibays, instead of just the primary ibay.

Thanks

Syv

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Redirection problem
« Reply #5 on: May 22, 2014, 12:17:26 AM »
ElFroggio

Quote
....it looks like having the user-vacation enabled with the the "/user", redirects the http:// to https:// on all the ibays....

I am not sure about that diagnosis.
It might be that the /user alias that user manager uses is the same alias as that which drupal uses, so the user manager is taking precedence over the drupal alias, & forcing you to login to user manager via https (which it does require you to use https to login securely)

You could look at the code/templates & see which alias would be easier to change.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Redirection problem
« Reply #6 on: May 22, 2014, 12:43:31 AM »
take a look to the file /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass and change user to what you want

i mean that line

    foreach $place ('user-manager','user')

once it works, do a custom template without user

Not tested but it should work, don't forget to do after the modification  a 'signal-event console-save'
« Last Edit: May 22, 2014, 12:47:17 AM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!