How to create Virtual host OS Windows 10 & XAMPP server

Опубликовано: 01 Октябрь 2024
на канале: Taiabur Rahman
135
1

Step 1) C:\WINDOWS\system32\drivers\etc\ Open the "hosts" file :
127.0.0.1 localhost
127.0.0.1 stripe.ci

Step 2) xampp\apache\conf\extra\httpd-vhosts.conf
DocumentRoot "C:/xamp/htdocs/stripe_ci"
ServerName stripe.ci www.stripe.ci

Step 3) C:\xampp\apache\conf\httpd.conf. Scroll down to the Supplemental configuration section at the end, and locate the following section (around line 500), Remove the # from the beginning of the second line so the section now looks like this:

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

Step 4) Restart XAMPP and now run in your browser
stripe.ci or www.stripe.ci