How To Set Up VirtualHost In Windows PC

How to set up a host in windows PC
(1) xampp->apache->config->Apache(httpd.conf)->add “Listen 9999(desired port no.)” under “Listen 80”.

(2) C:\xampp\apache\conf\extra->httpd-vhosts.conf->
<VirtualHost *:9494>
DocumentRoot “C:/xampp/htdocs/homecare/public”
ServerAdmin homecare_test@localhost

<Directory “C:/xampp/htdocs/homecare/public”>
AllowOverride All
Order Allow,Deny
Allow from all

# if you want access from other pc’s on your local network
#Require ip
# Only if you want the world to see your site
Require all granted

(3) C:\Windows\System32\drivers\etc->hosts


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s