Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

some tabs/menus disappear when limesurvey is behind a rev proxy under nginx

  • egirard
  • egirard's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 days ago #195848 by egirard
Hi all,

when i use limesurvey 4.1.13 directly in http, it works properly.

when i use it thru a nginx reverse proxy in https, i have some tabs/menus which disappear ( see enclosed picture).

I cannot discriminate if it comes from reverse proxy ans https, or from reverse proxy behaviour with limesurvey ?

can you help?
in the picture, menus highlited in red disappear on rev proxy use

the mnus is on group list -> add a new group.

thanks a lot.
The topic has been locked.
More
3 years 11 months ago - 3 years 11 months ago #196171 by majaaa
Hi,

I faced the same problem and found out, after reading a lot of forum entries and other sources from my google search, that limesurvey is utterly broken when it comes to reverse proxy https support. Every other decent app is recognizing the standard HTTP headers that nginx sends, like "X-Forwarded-Ssl" and "X-Forwarded-Proto" but limesurvey seems to ignore those headers. There is als no option to tell LS that it should produce all links/urls using the HTTPS schema and not HTTP. What a mess.

I solved this by searching and replacing the HTTP response body in the apache server. The module "substitute" needs to be enabled (just symlink mods-available/substitute.load to mods-enabled/) and the followning must be inserted int the vhost config:

AddOutputFilterByType SUBSTITUTE text/html
Substitute s/http:/https:/ni

Hope this helps and I really hope this will be fixed in the PHP code some day.
Last edit: 3 years 11 months ago by majaaa.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196194 by holch

Hope this helps and I really hope this will be fixed in the PHP code some day.

Have you created a bug report? If so, please post a link so we can follow the progress here in the forum.

If not, please do so, because otherwise this will not be fixed any time soon.

As you already know how to fix it, you might actually be able to provide a fix and make a pull request? At the end of the day, the software is open source and anyone can contribute.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #196203 by DenisChenu
For information : i use LimeSurvey 3 behind a reverse proxy ...

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose