1. add : httpd-vhosts.conf
C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot C:/xampp/htdocs
ServerName localhost<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost><VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /www/v24.org
ServerName v24.org
ServerAlias www.v24.org *v24.org
ErrorLog "logs/v24.org-error.log"
CustomLog "logs/v24.org-access.log" common<Directory "/www/v24.org">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost><VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /www/nakhonitech.com
ServerName nakhonitech.com
ServerAlias www.nakhonitech.com *.nakhonitech.com
ErrorLog "logs/nakhonitech.com-error.log"
CustomLog "logs/nakhonitech.com-access.log" common<Directory "/www/nakhonitech.com">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
2. add : hosts
C:\windows\system32\drivers\etc\hosts
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 v24.org
127.0.0.1 nakhonitech.com
3.error 403
C:\xampp\apache\conf\extra\httpd-xampp.conf
<Directory "/www/v24.org">
AllowOverride AuthConfig Limit
Order allow,deny
Require all granted
Allow from all
</Directory>
<Directory "/www/nakhonitech.com">
AllowOverride AuthConfig Limit
Order allow,deny
Require all granted
Allow from all
</Directory>