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 ?