adding virtual host xampp

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.


# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

To


# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Step 2:

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


<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot <PATH_TO_PROJECT_DIRECTORY_HERE>
ServerName <SERVER_NAME like local.pos.com>
</VirtualHost>

Replace PATH_TO_PROJECT_DIRECTORY_HERE & SERVER_NAME with appropriate values, Save the file.

Step3:

Open C:\Windows\System32\drivers\etc\hosts

Add the below line at the end of file.

127.0.0.1      <SERVER_NAME like local.pos.com>

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
is xampp a virtual host virtual hosting in xamp how to setup virtual host for xampp setup localhost virtual host xampp how to set virtual host in xampp xampp vm manage domain virtual host set virtual host for xampp how to setup site on virtual host xampp windows xampp virtual host how to add virtual host in xampp create virtual host xamp create a virtual host in xampp windows xampp make virtual host web xampp virtual host virtual host in apache xampp create virtualhost xampp virtual hosts in xamp create virtual host with xampp xampp virtual host with ssl xampp windows add virtual host set up virtual host xampp virtual host linux xampp what is a xampp virtual host virtual host xamppp xampp apache virtual host setup xampp virtual host virtual hosts kore xampp virtualhost xampp setup make xampp have virtual domain setup the virtual host in xampp name virtual host in xampp create virtual host in windows xampp create a virtual host xampp homesated how to configure virtual host in xampp confihgure virtual host for xampp how to set up virtual host in xampp xampp how to make a virtual host apache virtual host xampp one click virtual host with xampp how to create a virtual host in xampp xampp add virtual host with port and ip config virtual host xampp changing xampp virtual host host virtual xampp create virtual host in xampp virtual host xampp linux how to setup virtual host in xampp add virtual host in xampp how to virtual host xampp virtualhost xampp windows crear host virtual xampp setup virtual host in xampp xampp point domain to local virtual host create virtual host with xamp xampp enable virtual hosts virtual host in apache windows xampp xampp virtual host setup create virtual host in xampp windows 10 how to configure the virtual host in xampp setup a virtual xampp host for local website create virtual host in xampp localhost xampp virtual hosts windows how to make virtual host in xampp virtual host xampp windows 10 localhost virtual host xampp windows 10 create virtual server xampp xampp https virtual host xampp setting up virtual hosts make virtual host on xampp on linux create virtual hosts in xampp xampp create virtual host virtual host creation in xampp xampp add virtual host windows set virtual host xampp virtual host on windows xampp create virtual host xampp virtual host on xampp create virtual host xampp windows 10 how to create virtual host xampp setting up virtual host in xampp xampp virtual host localhost how to create virtual host in xampp virtualhost in xampp setup virtual host apache xampp xampp virtual host external file xampp virtual host better xampp localhost or virtual host xampp local virtual host virtual host apache xampp xampp virtual host examplež xampp add virtual host xampp virtual host for specify user set virtual host in xampp virtual host setting in xampp xampp apache create virtual host create virtual host apache xampp make virtual host xampp virtual host xampp windows 7 virtual host xampp server name virtual host xampp windows setup virtual host xampp max xampp ssl virtual host virtual host in xampp virtualhostin xampp virtual host XAMP windows make different virtual host in xampp how to create xampp virtual host for domain xampp virtual hosts how to make virtual host in xampp windows make virtual host in xampp virtualhost xampp xampp virtual host tutorial virtual host on xampp mac virtual host xampp xampp windows virtual host XAMPP virtual host virtual host xampp windows server xampp virtual host windows adding virtual host xampp
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source