Welcome to the LimeSurvey Community Forum

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

Change base URL / hostname

  • bonanza01
  • bonanza01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago - 7 years 8 months ago #139090 by bonanza01
Change base URL / hostname was created by bonanza01
Hello,

I'm running LimeSurvey within docker and therefore I'm running a reverse proxy on the docker host to communicate with limesurvey. However, the limesurvey setup seems to have configured all url with the docker client IP, meaning all survey links look like:
Code:
https://174.0.2.4/...
instead of
Code:
https://domain.tld/...

Moreover, some request to the non-public IP are made (despite the redirect rule in the proxy config), e.g. to
Code:
https://172.17.0.4/styles/Sea_Green/images/donate.png

How can I change this?
Thanks a lot for your help in advance!

P.S.: in the reverse proxy configuration I already have proxy_redirect rule like
Code:
proxy_redirect https://174.0.2.4/  https://domain.tld/
Last edit: 7 years 8 months ago by bonanza01.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #139136 by DenisChenu
Replied by DenisChenu on topic Change base URL / hostname
You can use
Code:
'config'=>array(
        'debug'=>0,
        'debugsql'=>0,
        'publicurl'=>'http://example.org'
    )
Here : seems the docker install set the host to the IP.

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.
  • bonanza01
  • bonanza01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #139142 by bonanza01
Replied by bonanza01 on topic Change base URL / hostname
Thanks for your reply. Can you tell me in which file I have to adopt these changes?

I yesterday also changed the
Code:
publicurl
part in the
Code:
config-default.php
file. Which seems to work so far. But when I'm in the admin interface, the above mentioned query to the donate.png is still made:
Code:
https://172.17.0.4/styles/Sea_Green/images/donate.png
Is the some additional setting that I have to change?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago - 7 years 8 months ago #139179 by DenisChenu
Replied by DenisChenu on topic Change base URL / hostname
For the donate link : i think it's an already fixed issue in the last version.

It's in application/config/config.php file : but it same than doing in config-default except : it was not removed at next update.

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: 7 years 8 months ago by DenisChenu.
The topic has been locked.
More
7 years 7 months ago #139671 by shorn
Replied by shorn on topic Change base URL / hostname
Especially double-check the "debug" setting is off.
When it's on, Lime generates hard-coded absolute URLs that will make your life difficult in a reverse-proxy scenario.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago #139680 by DenisChenu
Replied by DenisChenu on topic Change base URL / hostname

shorn wrote: ....
When it's on, Lime generates hard-coded absolute URLs that will make your life difficult in a reverse-proxy scenario.

I think it's partailly fixed now.

In fact : all web url must be relative , if you have some not relative : please Report the bug.

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 following user(s) said Thank You: daikaadsteve
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose