How to create vHost in Xampp | Xampp configure

Опубликовано: 30 Сентябрь 2024
на канале: JoinCoder
44
2

#JoinCoder#JC#Techcode#coder#helpCode#xampp
1- How to install Wampserver in Windows 10 for 2021
   • how to install wampserver and configu...  
2- How to create host in Wampserver
   • Create/Config virtual host with Wamps...  
3- How to change port in Wampserver
   • How to change port to new port in Wam...  



Step 1:
Open httpd.conf file present in C:\xampp\apache\conf\httpd.conf
Remove the #(hash) sign present to include the “httpd-vhosts.conf” file in httpd.conf file.

Step 2:
Create a virtualhost file. Open “httpd-vhosts.conf” file. And copy the below lines of code.


ServerAdmin [email protected]
DocumentRoot "C:\Hosting\youtube"
ServerName xamplocal.com
ServerAlias www.xamplocal.com
Step3:
Open C:\Windows\System32\drivers\etc\hosts
Add the below line at the end of file.
Restart apache server and visit the site URL.


Share your idea to the world . Thank for your comment

*** FOLLOW ME:
Follow us on Instagram:   / joincoder.official  

Follow us on Twitter:   / join_coder  
Like us on Facebook:   / joincoder.official