

Restart your apache, you should be able to access the application via mynewapp.local in your browser.Ĥ. Open the hosts file into editor and put following entry into it 127.0.0.1 mynewapp.localģ.
#Xampp install certificate ssl mac osx#
In mac osx the hosts config file is located at /etc/hosts.

Along with this configuration, we need to enter the entry of this new ServerName into OS's hosts config file. This entry denotes the path of your Application via DocumentRoot Entry, and also defines a ServerName for our application i.e. Options Indexes FollowSymLinks Includes ExecCGI The file is located at /XAMPP/xamppfiles/etc/extraĭocumentRoot "/Users/myusername/Projects/myNewApp" This file contains the Virtual host setting.

To be able to access php code via XAMPP that is in a directory other than htdocs which is the default directory under XAMPP to store applications.In this article we will see how we can add a separate virtual domain in XAMPP.
