- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Change base URL / hostname
- bonanza01
- Topic Author
- Offline
- New Member
Less
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:
instead of
Moreover, some request to the non-public IP are made (despite the redirect rule in the proxy config), e.g. to
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
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/...
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2546
7 years 8 months ago #139136
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 Change base URL / hostname
You can use
Here : seems the docker install set the host to the IP.
Code:
'config'=>array( 'debug'=>0, 'debugsql'=>0, 'publicurl'=>'http://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.
The topic has been locked.
- bonanza01
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
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
part in the
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:
Is the some additional setting that I have to change?
I yesterday also changed the
Code:
publicurl
Code:
config-default.php
Code:
https://172.17.0.4/styles/Sea_Green/images/donate.png
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2546
7 years 8 months ago - 7 years 8 months ago #139179
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 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.
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.
- shorn
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13910
- Thank you received: 2546
7 years 7 months ago #139680
by DenisChenu
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.
Replied by DenisChenu on topic Change base URL / hostname
I think it's partailly fixed now.shorn wrote: ....
When it's on, Lime generates hard-coded absolute URLs that will make your life difficult in a reverse-proxy scenario.
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.