Check out the LimeSurvey source code on GitHub!

LAN / WAN IP address

More
5 years 10 months ago #58082 by ifcanduela
Hello,

I have a configuration question regarding the email templates. I haven't found any reference to this in the manual.

In config.php, the IP that gets assigned to $roolurl is the private IP of the server (192.168.1.xxx in my case), which is the one printed on the survey emails with {SURVEYURL}.

The app is correctly displayed using the public IP, from outside the LAN. However, the surveys are unreachable from the emails; It should link to 212.xxx.xxx.xxx, but goes to 192.168.1.xxx instead, which makes the link useless.

Is there a simple way of changing the URL printed in the emails?

Thanks in advance,
Igor

Please Log in to join the conversation.

More
5 years 10 months ago #58088 by Mazi
Since the URL is created using settings in config.php I don't think it is possible to change that without changing the config.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 10 months ago #58098 by ifcanduela
I could change the config, but I'd rather not mess with that, you never know where it's used. Maybe there is a way to manually build the survey URL in the email template?

Please Log in to join the conversation.

More
5 years 10 months ago #58116 by ifcanduela
So it's impossible to do this? I though my setup (a server in a LAN, people accessing to surveys from the outside via port forwarding) was pretty common.

What would be a valid setup?

Please Log in to join the conversation.

More
5 years 10 months ago #58124 by DenisChenu
I don't understand,

Put your external url in your setup, and it's good.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 10 months ago #58138 by ifcanduela
If I do that, then the app is unusable from inside the LAN. We need access to the admin interface (at least) via private IPs.

Please Log in to join the conversation.

More
5 years 10 months ago #58166 by DenisChenu
Hello,

To modify the admin url, maybe you can use
$homeurl        =   "http://192.168.0.1/admin";                           // The website location (url) of the admin scripts

(see config-default.php : maube there are other optionnal settings)

Or change the
$publicurl      =   "$rooturl";                                 // The public website location (url) of the public survey script

You can see the fabrication url method for mailing in admin/token.php (search for SURVEYURL)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 10 months ago #58210 by ifcanduela
Thanks for the help, I will try that as soon as I can.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form