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

  • google plus

In Brief...

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.

Instructions

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

Author: Nat Dunn

Nat Dunn founded Webucator in 2003 to combine his passion for web development with his business expertise and to help companies benefit from both.

Discuss