How to Modify the httpd.conf File using XAMPP on OSX

The httpd.conf file is the main configuration file used by Apache HTTP Server. If you're using XAMPP for development, you can open the httpd.conf file via manager-osx.

Using manager-osx, which you should find in your XAMPP directory:

  1. Click the Manage Servers tab.
  2. Select Apache Web Server.
  3. Click the Configure button.
  4. Click the Open Conf File button to open the httpd.conf file.
  5. Make your changes.
  6. Save the file and restart Apache Web Server.
Modify the httpd.conf File using XAMPP on OSX

For example, i you want to change the default file that is delivered when a user navigates to a directory, you can modify the DirectoryIndex in the dir_module.

<IfModule dir_module>
    #DirectoryIndex index.html
    # XAMPP
    DirectoryIndex foo.php index.html index.html.var index.php index.php3 index.php4
Author: Nat Dunn

Nat Dunn is the founder of Webucator (, a company that has provided training for tens of thousands of students from thousands of organizations. Nat started the company in 2003 to combine his passion for technical training with his business expertise, and to help companies benefit from both. His previous experience was in sales, business and technical training, and management. Nat has an MBA from Harvard Business School and a BA in International Relations from Pomona College.

Follow Nat on Twitter at @natdunn and Webucator at @webucator.

About Webucator

Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.