httpd configuration

The httpd.conf directory differs across Linux & Unix variants like CentOS, Mac OS X, Red Hat, Ubuntu and XAMPP Mac.
This lists the httpd.conf location for each operating system:
CentOS 5.2:  
CentOS 5.3:  
Mac OSX 10.6 Snow Leopard:  
Mac OSX 10.7 Lion:  
Red Hat Enterprise Linux Server 5.6 Tikanga (RHEL):  
Ubuntu 7.04 Feisty Fawn: 
Ubuntu 8.10 Intrepid Ibex: 
Ubuntu 10.10 Maverick Meerkat: 
XAMPP on Mac: 
If your operating system or Apache version is not mentioned above, you can use the find command on Linux, Unix or Mac via SSH/Terminal to find httpd.conf.
find / -name httpd.conf 2>/dev/null

If you aren’t using packages to install Apache and perhaps compiled it from source instead or otherwise installed to a custom location, we can easily run find over the entire file system to find these files.

root@centos7 ~]# find / -name httpd.conf

The above example will search through the root of the file system ‘/’ and find every file named ‘httpd.conf’.


The options we will use with the RPM command are -q to query a package, and -c which will list the configuration files that are part of the package. As shown below we have run RPM with the -qc options on the httpd package, which is where Apache comes from in CentOS.

[root@centos7 ~]# rpm -qc httpd

These are all of the default configuration files that are installed by the httpd package.

The primary Apache configuration file is /etc/httpd/conf/httpd.conf, most of the changes to Apache will be made here.

* Don’t forget that if you edit any of the Apache configuration files you will need to reload your apache server.

  • httpd configuration
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

IP class

For dedicated server owners.Each IP you order is class 4 Failover and are switchable between your...

Geolocated IP addresse

You have created sites with an international focus and are keen to work on SEO for your target...

The keyword cannibalization

Keyword cannibalization means that you have various blog posts or articles on your site that can...

Editing files using VI

VI is a Linux text editor that can edit most of the files under a Linux architecture (text files,...

Dedicated Server Info manual

This manual is to be used to make all administrators more sensitive regarding few topics related...