RedHat iTOps Tube

Thursday, November 17, 2011

Incompatible httpd.conf Files When Upgrading

Incompatible httpd.conf Files When Upgrading

Your old configuration files will be incompatible when upgrading from Apache version 1.3 to Apache 2.X. In Redhat / Fedora, the new version 2.X default configuration file is stored in /etc/httpd/conf/httpd.conf.rpmnew. For the simple virtual hosting example above, it would be easiest to:

  1. Save the old httpd.conf file with another name, httpd.conf-version-1.x for example. Copy the ServerName, NameVirtualHost, and VirtualHost containers from the old file and place them in the and place them in the new httpd.conf.rpmnew file.
  2. Copy the httpd.conf.rpmnew file an name it httpd.conf
  3. Restart Apache

With other distributions, the procedure is similar; just place your containers in the new default configuration file and restart Apache.