
Options Indexes FollowSymLinks Includes execCGI Towards the bottom of the file you will see some example VirtualHosts, which you should comment out or delete.Īt the bottom of the file, add ‘localhost’ as the default named VirtualHost like so:ĭocumentRoot "/Applications/XAMPP/xamppfiles/htdocs" Lets now open the following file /Applications/XAMPP/xamppfiles/etc/extra/nf. Now, uncomment the second line by removing the hash (#) so that Apache will load your customised VirtualHosts files as follows: #Include /Applications/XAMPP/etc/extra/nf

Now that you have the file open, you will need to look for these lines

An easy way to get here is by going to ‘Finder’ –> ‘Go’ –> ‘Go to Folder’ and then simply pasting in the location.
#Loading in app on xampp for mac how to#
By default, it would be set up as So how do we make this change? How to Enable VirtualHostsįirstly, you’ll need to open the following file /Applications/XAMPP/xamppfiles/etc/nf in your preferred text editor. To test your development site all you would need to do is visit “” into your browser’s address bar. For example, you might want to map yoursite.silva to /Users/myusername/yoursite. You can set up as many VirtualHosts as you need so that each website operates under its own hostname. VirtualHosts allow Apache to map a hostname to a directory on the filesystem. Okay, so we’re going to explain what we wanted to change in order to get out localhost set up exactly how we wanted it… So firsts things first… What is VirtualHosts? So here are a few steps we took to get everything running as we wanted it. Installing was a breeze, but things became a bit more complicated when setting up Apache VirtualHosts. It’s not as straight forward to use as AMPPS, but it’s probably one of the better applications for localhost development. So that’s when we made the switch to XAMPP.

I’m sure they will update it again in future but the issue is that it’s a 32 bit application, it’s no longer compatible on the latest OS. We used to be a massive fan of AMPPS but since upgrading to macOS Catalina, it wasn’t possible to use this application anymore.
