I’ll continue with setting up virtual host with SSL as well for local development. Hope you will able to add virtual host easily with XAMPP and MAC OS X. Open your browser and try and the virtual host you added by entering like and see it works ! Use XAMPP Control to stop and then start Apache. Then type this command to edit the hosts file.Īt the end of the file, enter the virtual host and ip here our ip is 127.0.0.1 By following the steps outlined in this article, you should be able to install XAMPP on your Mac using terminal and start developing and testing web applications in no time. # /Applications/XAMPP/xamppfiles/htdocs/planetĭocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/planet" XAMPP is a powerful and easy-to-use web server package for Mac users. # 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |