PDA

View Full Version : Hostname- list of file locations


Commdude
19th March 2006, 03:38
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:

falko
19th March 2006, 14:13
Run this:

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.

jokuleo
21st March 2006, 12:01
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

till
21st March 2006, 12:05
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 )

Try to rebuild your SSL certificates as described here:

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

jokuleo
21st March 2006, 12:12
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.

jokuleo
21st March 2006, 12:18
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