10.4: Check changes made to Apache's config file

Oct 07, '05 06:22:00AM

Contributed by: kd4ttc

With the release of 10.4, OS X has changed a couple of things important to the Apache Web server. For example, Rendevous is now Bonjour, and there a few changes in the configuration file for Apache. Due to this and a couple of other minor changes, the Apple installer (when doing an upgrade install) writes a new httpd.conf into the /etc/httpd directory.

The problem, of course, is if that if you have customized httpd.conf for anything, you will have lost your custom configuration. In my case, the server was no longer doing SSL and PHP. The installer, thankfully, moves your original file to httpd.conf.user_modified before creating the new one. Because of the changes in the system, though, you cannot just rename the file and proceed -- that configuration file will not work without some changes.

So, to find out how the new and old differ, just do the following in Terminal:

 $ cd /etc/httpd
 $ diff httpd.conf httpd.conf.user_modified
What you need to do to fix things up depends on your customization needs, but diff will show you where the files differ.

Comments (15)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20051006085010549