Click to See Complete Forum and Search --> : [RESOLVED] How To Change Computer Name Safely?


ixalmida
06-02-2009, 05:12 PM
Hi again. As you may know from other threads, I recently built a SUSE 11 box (console/Yast) for my intranet web server. I had a bad time previously when I changed the IP address of the server (on directive from the net admin) and I ended up hosing Apache 2 (secure), my web site wouldn't work, and subsequently I had to reformat and start from scratch.

Now my box is fully up and working perfectly, but my net admin wants me to change the host name. I can't see how that would make a difference, since the network is Active Directory which I don't think looks at the Linux host name...but maybe I'm wrong. Anyway, I'm worried that changing the host name of my Linux box will hose Apache again. What do I need to do to make sure that doesn't happen?

bradgrafelman
06-02-2009, 05:29 PM
AFAIK, changing either the IP or hostname of a computer won't have any effect on Apache that a simple find-and-replace wouldn't cure in the httpd.conf file (and/or other .conf files that are loaded).

Other considerations, such as DNS and links using the old hostname, might come into play, but that wouldn't be Apache's fault.

ixalmida
06-02-2009, 08:04 PM
Cool - I'll give it a shot. I just remembered it's a VM, so I can just make a backup copy before I tinker.

Thanks!

ixalmida
06-05-2009, 06:23 PM
Crossing my fingers...

I've already created a new certificate with the new hostname. I could not find an entry in any of the .conf files (httpd, vhost-ssl, listen, etc) for the hostname, so I'm hoping Apache is simply looking at the URL.