Welcome to the LimeSurvey Community Forum

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

LimeSurvey wrong Url (reverse-proxy)

  • RoHase
  • RoHase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 4 weeks ago #243832 by RoHase
LimeSurvey wrong Url (reverse-proxy) was created by RoHase
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Version 6.1.0+230522
Own server or LimeSurvey hosting: SelfHosted Fedora Linux
Survey theme/template: default
==================
Hi,
i have LimeSurvey running on a LinuxServer (eg host01.dom.loc) behind a Nginx-Reverse-Proxy in DMZ (two different Linux-Servers).
the Url is service.domainname.com/limesurvey and redirect to host01.dom.local works.
The Problem is now - the "Share Survey" Link should show:
service.domainname.com/limesurvey/index....x&sid=912345&lang=de
but it shows the local hostname instead:
host01.dom.local/limesurvey/index.php?r=...x&sid=912345&lang=de

I tried some Changes in config.php
'publicurl' => ' service.domainname.com/limesurvey ',
'rooturl' => ' service.domainname.com/limesurvey ',
'homeurl' => ' service.domainname.com/limesurvey ',

but none of them works...
Hope someon coud give me a hint?
Thanks
 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 4 weeks ago #243838 by holch
Replied by holch on topic LimeSurvey wrong Url (reverse-proxy)
It depends on how you log into Limesurvey. If you log into it on service.domainname.com/limesurvey/, it should also use this domain.

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

Please Log in to join the conversation.

  • RoHase
  • RoHase's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 3 weeks ago #243856 by RoHase
Replied by RoHase on topic LimeSurvey wrong Url (reverse-proxy)
In Configuration/Interfaces i can see the correct URL service.domainname/limesurvey ...

but in Survey - Share survey there are still the urls with the local dns Name host01.dom.local/limesurvey ...

If i create new Surveys - same wrong url. Is there some other config maybe in the Database?

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 3 weeks ago - 10 months 3 weeks ago #243868 by DenisChenu
Replied by DenisChenu on topic LimeSurvey wrong Url (reverse-proxy)
If you can not fix by server

There are an issue currently for publicurl : bugs.limesurvey.org/view.php?id=18821

BUT : you can force all url manual.limesurvey.org/Optional_settings/en#Request_settings
Code:
'request' => array(
            'hostInfo' => 'http://www.example.org/'  
            ),

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.
Last edit: 10 months 3 weeks ago by DenisChenu.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose