Welcome, Guest
Username: Password: Remember me

TOPIC: Accessing Limesurvey installed on an internal server from an external site

Accessing Limesurvey installed on an internal server from an external site 3 years 6 months ago #56234

  • zenil79
  • zenil79's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 0
Hi All,

My setup is such that I have limesurvey installed on a server in a private network and its accessed from a public facing domain.The internal server could be http://wineyard:8000/limesurvey ..And the external domain could be www.cbb.com. So a request to www.cbb.com/limesurvey gets forwarded using apache forwarding rules to http://wineyard:8000/limesurvey/

I find that in this setup when I launch a survey using the www.cbb.com url, the survey code gets generated with the internal url. So In the source say instead of www.cbb.com/limesurvey/template.js, i see http://wineyard:8000/limesurvey/template.js. Needless to say the survey doesn't work.

I find an entry in config.php :
$rooturl = "http://{$_SERVER}/limesurvey";
I believe this entry needs to be changed to
$rooturl = "www.cbb.com/limesurvey";

Are there any other changes that I need to make. Plus why is $_SERVER returning the internal url http://wineyard:8000 ? Shouldn't it return the url where the actual request came from which is www.cbb.com ?
Last Edit: 3 years 6 months ago by zenil79.
The administrator has disabled public write access.

Re: Accessing Limesurvey installed on an internal server from an external site 3 years 6 months ago #56241

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2640
  • Thank you received: 313
  • Karma: 115
Limesurvey doesn't know about how you configured your external URL. It depends very much on how your Apache is configured, but your "construction" sounds pretty weird to me. On the other hand, I am not a server admin and have little knowledge about those things.

What $_SERVER does is to look on the server, for which domain/URL it is configured and it is obviously wineyard:8000 and not www.cbb.com what it finds.

Probably it will work with $rooturl = "www.cbb.com/limesurvey".

Just give it a try. Maybe someone with more server admin knowledge can help out here.

Who is adminstrating the server on your side? This person should be able to help you the best. Because this is more a server administration thing than a limesurvey aspect.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: zenil79

Re: Accessing Limesurvey installed on an internal server from an external site 3 years 6 months ago #56286

  • zenil79
  • zenil79's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 0
yes looks like $rooturl is the solution
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.138 seconds
Donation Image