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
ServerName homecare_test.app
ServerAlias homecare_test.app

<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 192.168.11.100
# Only if you want the world to see your site
Require all granted
</Directory>
</VirtualHost>

(3) C:\Windows\System32\drivers\etc->hosts
192.168.11.218 homecare.app

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s