I have

*CiviCRM 4.6.6 on 
*Drupal 7.41 running through 
*Apache2 on 
*Linux Mint 17 in a VirtualBox on Linux Mint 17 

If I am on the LAN I can access CiviCRM and everything works: everything works

I also have a VPN that can connect to the drupal server and when I connect I get to log into CiviCRM but then CiviCRM stalls while it tries to connect to the LAN address so the system fails to work.

If, at that point, I stop the browser from continuing to load I can use the CiviCRM dropdown menus and go to almost any other page, including the Drupal menu. As far as I can tell only the dashboard fails to load.

_http:// -- stalls with the message: "Connecting to _http://"

Note: I inserted an underscore just to prevent creating a real link in this message.

I know that the CiviCRM addresses are set to the address but I would like my VPN clients to access the site as well.

The best I can come up with is that I need to set my VPN computer so that: Any link for gets rewritten to be sent as -- I tried a few FireFox addons to accomplish this but they failed to work, perhaps because of Java Script?

Again, it seems to fail only with the dashboard.

Unfortunately I am struggling to find out how to fix that. Is it even the right way? Can it be done in any way?

Thank you in advance for any help you can provide. John in Oregon, US

  • Can your LAN clients access If so, you could change the base URL to use that and LAN & VPN clients use the same address.
    – Aidan
    Jan 22, 2016 at 9:36

1 Answer 1


The base URL is set in civicrm.settings.php.

I can imagine you create a conditional statement in there.

You should try if $_SERVER['SERVER_ADDR] or $_SERVER['SERVER_NAME'] is the right variable for you to differentiate between the 2 situations.

More info: http://php.net/manual/en/reserved.variables.server.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.