'Salutatory Email for Clients' wrong CP and manual URL

Discussion in 'Installation/Configuration' started by greenpete, Mar 22, 2008.

  1. greenpete

    greenpete New Member

    I have a problem with the 'Salutatory Email for Clients'.
    When I create a new user the system sends an e-mail with all the details in, but the CP URL and the Manual URL have the local IP in them instead of my domain name.
    i.e. I get;
    Your Control Panel can be found here https://192.168.0.6:81
    instead of;
    Your Control Panel can be found here https://www.mydomain.com:81
    Can anyone tell me how to rectify this please.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please check what you have in /home/admispconfig/ispconfig/lib/config.inc.php.
     
  3. greenpete

    greenpete New Member

    The only thing that stands out to me is on line 74;
    '"$go_info["server"]["server_url"] = 'https://'.$_SERVER['HTTP_HOST'];'
    and possibly line 76;
    '$go_info["server"]["server_url"] = "https://server1.swerfordheath.com:81";'
    Otherwise I can't see anything.
    I will PM you the file.
     
    Last edited: Mar 22, 2008
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

  5. greenpete

    greenpete New Member

    I use the local I.P. as it's quicker and easier.
    I just tried through a proxy and therefore used the domain name and it worked!
    Thanks yet again!:)

    UPDATE!!! I found that using the local I.P. was the problem!
    If I edit my hosts file on my desktop P.C. (to map the URL to a local I.P. see here) and then use the full URL (the one all others will use to access my server) it works! i.e. 'http://www.domain.com:81' not 'http://192.168.0.xxx:81'
     
    Last edited: Jun 29, 2009

Share This Page