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

Looking to improve your PHP skills? Check out Webucator’s PHP classes.

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, 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
</IfModule>

Written by Nat Dunn.


Related Articles

  1. How to Modify the httpd.conf File using XAMPP on OSX (this article)
  2. Fixing a Blocked Port in XAMPP