<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The URL is calculated from the name of the server by this line in
    /opt/zendto/lib/NSSDropbox.php:<br>
    $NSSDROPBOX_URL = "http".($_SERVER['HTTPS'] ? "s" :
    "")."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];<br>
    <br>
    That's so it is *not* hard-coded, but derived from your Apache
    setup. If you set up 2 instances of ZendTo, both pointing to the
    same /var/zendto directory (in preferences.php), you should be able
    to get it going. Set one up with a VirtualHost in Apache with your
    external URL, and another VirtualHost with your internal URL.<br>
    <br>
    Inward-facing DNS and Outward-facing DNS is the right answer to this
    problem, however. You really don't want to use totally different
    hostnames inside and outside, or you'll forever hit this sort of
    problem with any package you install that needs both internal and
    external web access.<br>
    <br>
    Jules.<br>
    <br>
    On 20/01/2012 10:10, Nigel Kendrick wrote:
    <blockquote
cite="mid:CAECWQnSd_UsxaYn13UcERyEY9MO9oxyC5V5naN_prwD6PVfjjw@mail.gmail.com"
      type="cite">Morning,<br>
      <br>
      Our company Internet router can't cope with loopback addresses
      (URLs that resolve back onto the LAN) and so we have a
      public-facing URL for customers to get to our ZendTo site and also
      an address (portal.our.lan) that we use internally to get to the
      server in the DMZ. I thought I'd hard coded the external address
      into the PHP as required to ensure that customers don't get emails
      with the unreachable internal address but I must have missed a bit
      . Excluding the option of replacing our router...<br>
      <br>
      1) Could the URL used in contact emails be made a config variable
      so it survives app updates.<br>
      <br>
      2) For the interim, where exactly should I look to hard code the
      URL - I wonder if I have missed an instance somewhere.<br>
      <br>
      Thanks<br>
      <br>
      Nigel <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'It's okay to live without all the answers' - Charlie Eppes, 2011
'All programs have a desire to be useful' - Tron, 1982
'That is the land of lost content,
 I see it shining plain,
 The happy highways where I went,
 And cannot come again.' - A.E. Houseman
</pre>
  </body>
</html>