Hi oh I’ve been gone for somewhere but I’m back now. Today, I will show you how to do set up a virtual host in web server on Windows environments. First of all, I have my file here there okay when we find the files first of all we need to find an HTTP dot V host as a miracle host dot-com and we go to open see when I am my dummy code dummy texture Bingham Apache I have a passion to dot 4.2 so clicking into that called extra and I’m looking for the HTTP D Lee ho scones and I already have it open so first of all we need to know what what folder are gonna use as this vehicle host so let’s go back to the movie and I have tutorial underscore PHP which I will use the file that’s here which I wrote earlier isn’t a folder.
Okay, so I will start opening the time weirdo host star 18 this means open tag on all our dresses on port 80 which I could come like this on 27 dot 0 dot 0 dot 1 sorry that’s the way suppose B : port 80 but let’s keep easier with a simple star close it little host check it’s the same word yes it is you see it’s green means I spelled it right okay and we need some values in here attributes and values so the server admin which basically doesn’t do anything which on this virtual server but it’s a good habit if you want this on the real server which is online so let’s say admin app tutorial underscore PDP or whatever you want dot-com we need specify the document root document root need the quotes double quotes and I say no one.
I’m not saying it’s I need the physical path to the map to the folder okay so C colon backslash in need some backslash WAM backslash www backslash tutorial on the square PHP which is the folder I’m using then server name which will be the little domain no dress so I call www dot to Torian underscore PHP calm error log double quotes arrow log is the errors that will be shown to you in PHP all the error will be stored in this log you can go back you can check it will be the dates you can check from the time you created this little hook folder will talk host so where we put this era log.
I would recommend the same folder as we’re using so it would be C colon backslash well back at www.viki /i toriel PHP slash log file dot log we need a custom log which I am not exactly sure what it does but it’s a good habit to have and you can read you can read the custom log file and maybe you understand better I haven’t read it yet but do it and I hope you learn something custom love a double quotes C colon backslash well backslash www backslash tutorial underscore PHP backslash c log pi dot lovely and i don’t know why but i read you need a common after so just put the term and you can google it if you want to know about more about it okay now we change will change never taught hosts kampf so we have we have a bit of folder we have a folder which is a bit of host now we need to redirect it in the hosts file so we will find host byline you go in C windows and system 32 drivers et Cie and host edit with notepad or whatever you want you can see I have some owner in the story on ok so the local host is on hon 27.0 dots one sorry one too many and I have two tabs here is the domain address which I wrote here it have to be exactly the same so I copy paste BBV www dot tutorial on scope hp.com say okay so we’ve done this no hashtags this is suppose to work we only need to restore the web server now so a left tick restart all services should go orange and it should go red orange and green and we’re good good to go.
Yes okay let’s open them hey this snap to shit came up okay looks real good huh turn up is Pete calm and you can see www dot to total underscore hp.com is redirected to our folder tutorial underscore PHP or whatever you name it and the files there are ours chosen the names is now created and okay now it’s empty because we have no error message here you see something it’s the icon cool you see the day today pretty awesome so that’s that’s how you create a virtual host in web server on Windows environment thank you I hope you learn something and take care of bye bye you.