Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: https load balancer URL for limesurvey gets redirected to http

https load balancer URL for limesurvey gets redirected to http 6 Monate 1 Woche her #103463

I have a https Load balancer URL which forwards to a plain http apache webserver where limesurvey is installed.

The problem is Limesurvey php is redirecting the incoming https request from Load Balancer to http and is getting timed out because my load balancer is not configured to listen on http.

This is how the redirection is happening from the ssl Load balancer Limesurver URL:

https://{mydomain.com}/limesurvey/admin/admin.php ---> https://{mydomain.com}/limesurvey/index.php/admin
> http://{mydomain.com}/limesurvey/index.php/admin/authentication/sa/login

I have tried following but none of them worked, redirection still ends on http timed out:
1. Force SSL on in Global Settings.
2. In config.php, updated publicurl to https://{mydomain.com}/ or https://$_SERVER/,
3. I did the configured ssl on my apache too.

Can anyone suggest me any other options that I would have missed.
I really need to get this resolved.
Letzte Änderung: 6 Monate 1 Woche her von limesslissue. Begründung: incorrect url
Der Administrator hat öffentliche Schreibrechte deaktiviert.

https load balancer URL for limesurvey gets redirected to http 6 Monate 1 Woche her #103496

  • jelo
  • jelos Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 467
  • Dank erhalten: 52
  • Karma: 16
Are you sure that the misbehaviour is on the limesurvey part?

What kind of loadbalancer is used? A reverse proxy? Since you're talking about a timeout.
Is that loadbalancer under your control?

If you directly access the limesurvey installation via a https://... is limesurvey switching URLS to http too?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

https load balancer URL for limesurvey gets redirected to http 6 Monate 1 Woche her #103516

I think its limesurvey because

1. I have similar setup (SSL Load-balancer with plain http apache) on my other application (java based hosted on weblogic server unlike php on apache itself) and it works fine over there.
2. I think limesurvey routes.php is somehow redirecting it that way (switches the load balancer URL to http) thinking of the incoming request as plain http because my apache is plain http.

If I directly access via https apache URL it does not switch to http.

Load balancer is setup like a reverse proxy with SSL, that just forwards the incoming requests to plain http apache.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

https load balancer URL for limesurvey gets redirected to http 6 Monate 1 Woche her #103518

Plus it worked fine (with same setup) on previous version of limesurvey 190 where we changed the rooturl to https://HTTP_HOST/.

Currently we are using limesurvey205 version
Letzte Änderung: 6 Monate 1 Woche her von limesslissue. Begründung: More information added
Der Administrator hat öffentliche Schreibrechte deaktiviert.

https load balancer URL for limesurvey gets redirected to http 6 Monate 1 Woche her #103544

  • jelo
  • jelos Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 467
  • Dank erhalten: 52
  • Karma: 16
If you enter the exact same URL without a proxy it works fine.
With exact URL I mean the URL after redirect/rewriting.

If you enter the exact same URL through the proxy you get a time out.

Have you take a look at the apache access logfiles?
What if the SSL/TLS handshake is the problem between proxy and apache?
From you provided information I guess that both proxy and apache communicate via TLS.
In your first post you said it is a loadbalancer. I still wonder what load is balanced. Is there more than one Limesurvey installation? Or is the TLS encryption only on the proxy and the apache with limesurvey is communicating with the proxy in an unencrypted way?

The issue can still be in every part of the setup.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

https load balancer URL for limesurvey gets redirected to http 6 Monate 1 Woche her #103566

Access logs just shows the redirection path with 302. Nothing logged in error logs.
If there is problem between proxy and apache, then I dont understand how it worked with same setup with limesurvey version 190.

Load Balancer provides the TLS encryption (act as a proxy), there are no multiple instances.
You are right, TLS encryption is only on the proxy and the apache with limesurvey is communicating with the proxy in an unencrypted way.

We installed 192 version as well yesterday and it worked absolutely fine (just updated rooturl to https).
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.141 Sekunden
Donation Image