- Posts: 1
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
4 years 3 weeks ago #195848
by egirard
some tabs/menus disappear when limesurvey is behind a rev proxy under nginx was created 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.
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.
Attachments:
The topic has been locked.
- majaaa
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
4 years 2 weeks ago - 4 years 2 weeks ago #196171
by majaaa
Replied by majaaa on topic some tabs/menus disappear when limesurvey is behind a rev proxy under nginx
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.
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: 4 years 2 weeks ago by majaaa.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
4 years 2 weeks ago #196194
by holch
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.
Replied by holch on topic some tabs/menus disappear when limesurvey is behind a rev proxy under nginx
Have you created a bug report? If so, please post a link so we can follow the progress here in the forum.Hope this helps and I really hope this will be fixed in the PHP code some day.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 2 weeks ago #196203
by DenisChenu
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.
Replied by DenisChenu on topic some tabs/menus disappear when limesurvey is behind a rev proxy under nginx
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.