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, 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.
DirectoryIndex foo.php index.html index.html.var index.php index.php3 index.php4
Author: Nat Dunn
Nat Dunn is the founder of Webucator (www.webucator.com), 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.