Assumptions- root folders for your two sites are:
c:/mysite/
c:/myweb/
1) add these lines to the Windows Hosts file (C:\WINDOWS\system32\drivers\etc\hosts)
127.0.0.1. myweb
127.0.0.1. mysite
2) Into Apache's "\xampp\apache\conf\Http.conf" file add the following:
<Directory c:\myweb>
Order allow,deny
Allow from all
</Directory>
<Directory c:\mysite>
Order allow,deny
Allow from all
</Directory>
3) Add this is the "\xampp\apache\conf\extra\httpd-vhosts.conf" file:
<VirtualHost *:80>
ServerName myweb
DocumentRoot C:\myweb
<Directory C:\myweb>
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName mysite
DocumentRoot C:\mysite
<Directory C:\mysite>
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Now open a browser and simple type either myweb or mysite and you should be able to see both of your site wih all the php in their full glory!
No comments:
Post a Comment