Hostname- list of file locations

Discussion in 'Installation/Configuration' started by Commdude, Mar 19, 2006.

  1. Commdude

    Commdude New Member

    Trying to find all the places I need to change the hostname from my initial install. I read somewhere that it is preferrable to use an IP address rather than a hostname. Kinda confusing...:confused:
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Run this:

    Code:
    echo server1.example.com > /etc/hostname
    /bin/hostname -F /etc/hostname
    (replace server1.example.com with your hostname) and also change the hostname in /etc/hosts.
     
  3. jokuleo

    jokuleo New Member

    I think I have the same problem:
    After changing the hostname in every location I know of and rebuilding the security thing, there´s still a message when opening webmail: "You are connecting to 'oldhostname.com' but certificate belongs to 'newhostname.com'...". The 'oldhostname' ist the name the server had when I made the installation. So there must be another location (or more than one?) where the old name is stored. I could even just reinstall ispconfig but I´m not sure if that would help because an upgrade usually touches not all config files (hmmm, that´s why it´s called an upgrade, isn´t it? :D )

    Greetings

    Joscha
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to rebuild your SSL certificates as described here:

    http://www.howtoforge.com/forums/showthread.php?t=121
     
  5. jokuleo

    jokuleo New Member

    Just before reading through the whole thread: If this is the description on how to rebuild the ispconfig certificates (as in the faq) I allready did that.
     
  6. jokuleo

    jokuleo New Member

    OK, I think I found it. It´s the configuration of the virtual host for the admin panel in /root/ispconfig/httpd/conf/httpd.conf

    Thanks

    Joscha
     

Share This Page