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:
- Click the Manage Servers tab.
- Select Apache Web Server.
- Click the Configure button.
- Click the Open Conf File button to open the httpd.conf file.
- Make your changes.
- Save the file and restart Apache Web Server.

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>
Related Articles
- How to Modify the httpd.conf File using XAMPP on OSX (this article)
- Fixing a Blocked Port in XAMPP