![]() # this adds a virtual host called planet.local which will have files located in Now Add your virtual host by adding the following: Sudo nano /Applications/XAMPP/etc/extra/nfĬomment out or delete everything of the example of virtual hosts then add the following to keep workingĭocumentRoot "/Applications/XAMPP/xamppfiles/htdocs" Same as above open terminal use the following command: Now you need to open the nf which is located at /Applications/XAMPP/etc/extra/nf. Save it by Control+X and then Y then enter. By default it is locked and you can’t edit it with GUI without rooting. Modify the hosts file to work the virtual hosts you added.Īll you need to open and edit the nf which is located at /Applications/XAMPP/etc/nf.Create a virtual hosts entry for each virtual host. ![]() Modify the nf to include the virtual hosts file.To create virtual hosts on our OS X with XAMPP, we need to do the following: I’ll discuss on the problems you may face here. But who are new in development and MAC OS may fall some problem with it. XAMPP uses Apache web server so we need to do it by configuring Apache. I’ll explain here about this using XAMPP on MAC OS X LION. By accomplish this we need to set up virtual hosts on the local server. When we develop projects sometime we need to make the website act as a document root like first party domain.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |