Let's say my IIS occupied port 80, and my XAMPP or XAMPPLITE on port 8088.
Assume that htdoc directory configure on C:/xampplite/htdocs/
Note:
email in the vhost has to be valid settings.
we might not need the error log or custom log in the vhost settings.
REPLACE all ( to < and ) to > Due To Blogger not allow those tags!
1.C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1 mysubdomain2.test.com
127.0.0.1 mysubdomain3.test.com
This is for development settings, in actual, you can set this on your domain manager tools.
2. extra\httpd-vhosts.conf
#yeeling added
NameVirtualHost *:8088
#yeeling added
(virtualhost)
ServerName mysubdomain2.test.com
ServerAlias mysubdomain2.test.com
DocumentRoot "C:/xampplite/htdocs/webApp2"
ServerAdmin info@ethanliew.com
(/virtualhost)
#yeeling added
(virtualhost)
ServerName mysubdomain3.test.com
ServerAlias mysubdomain3.test.com
DocumentRoot "C:/xampplite/htdocs/webApp3"
ServerAdmin info@ethanliew.com
(/virtualhost)
3. extra\httpd-userdir.conf
#yeeling added
(Directory "C:/xampplite/htdocs/webApp2"
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
(/directory)
#yeeling added
(Directory "C:/xampplite/htdocs/webApp3"
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
(/directory)
4. Browse with Firefox:
http://mysubdomain2.test.com:8088/ goes to webApp2
http://mysubdomain3.test.com:8088/ goes to webApp3
Thanks to my good friend, yeesiang.com (sound likes my brother ) =)
Apache, and XAMPP !!
No comments:
Post a Comment