localhost TLD)ĭocumentRoot "c:\users\username\source\mysite" danieldusek.localhost with your own name (do yourself a favor and use actually.c:\users\username\source\mysite with actual path to your PHP project,.At the very end of the file paste the following code, but replace:.Open nf file in text editor of your choice.Open your xampp install directory and locate nf file under apache/conf/extra folder.Path to your xampp/lampp installation, e.g.: c:\xampp.Path to your PHP project, e.g.: c:\users\username\source\mysite.Quick step by step virtual host setup in xampp your application maybe doesn't handle relative paths well. Your PHP application will likely run on real url address, such as, you want to emulate this locally and localhost just doesn't do it for you. If you happen to be a unix/linux user, I am sure you know where you have your stuff and can follow along. I explain the concepts from a Windows-user perspective (paths, file names). I have no illusion that most of you will read the second part. ![]() In the second part, I dive deep on each step of the tutorial to make sure you understand everything that you have done. I split this tutorial in two parts - beginning with quick walkthrough, from start to finish in few steps. This tutorial will walk you through setting up a virtual host for your PHP project. ![]() Setting up virtual hosts on XAMPP* local webserver | Tutorials Setting up virtual hosts on XAMPP* local webserver - Daniel Dušek, Security Engineer
0 Comments
Leave a Reply. |