Where to find your servers httpd.conf file

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
/etc/httpd/conf/httpd.conf

CentOS 5.3
/etc/httpd/conf/httpd.conf

Mac OSX 10.6 Snow Leopard
/etc/apache2/httpd.conf

Mac OSX 10.7 Lion
/etc/apache2/httpd.conf

Red Hat Enterprise Linux Server 5.6 Tikanga (RHEL)
/etc/httpd/conf/httpd.conf

Ubuntu 7.04 Feisty Fawn
/etc/apache2/httpd.conf

Ubuntu 8.10 Intrepid Ibex
/etc/apache2/httpd.conf

Ubuntu 10.10 Maverick Meerkat
/etc/apache2/httpd.conf

XAMPP on Mac
/Applications/XAMPP/etc/httpd.conf

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
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

rkhunter (Rootkit Hunter) Install Guide

What is rkhunterrkhunter (Rootkit Hunter) is a Unix-based tool that scans for rootkits,...

List of available VPS Templates

Below is a list of the available templates you can select to use on your Virtual Private Servers...

How to install a .bin file using SSH on Ubuntu/CentOS

Bin files are Linux self extracting binary files that is commonly used for server side software....

Can you install Zope & Plone CMS onto my VPS or dedicated server?

We can install and setup the latest Zope & Plone CMS onto any of our VPS or dedicated...