10 Steps to setup subsite in local machine with windows Environment.
1. Create a subfolder subsite under drupal6/sites/subsite.(drupal6 is an main site)
2. Copy the default.settings.php from sites/default folder and renamed as settings.php, then paste it into drupal6/sites/subsite/settings.php
3. Create folders themes and modules under sites/subsite/themes and sites/subsite/modules. Place the site specific themes and modules.
4. Open the file httpd-vhosts.conf from bin/apache/conf/extra/ httpd-vhosts.conf
5. Add the following code at the end of file.
<VirtualHost *:80>
DocumentRoot "E:/Jerry/wamp/www/drupal6"
ServerName subsite
</VirtualHost>
Note: drupal6 is an main site. The subsite folder under wamp/www/drupal6/sites/subsite
6. In windows system goto start > run (win+r) and type drivers and press ok.
7. Then open the folder etc. edit the file hosts.
Add the host name under default host like..
127.0.0.1 tobylove6
127.0.0.1 subsite
8. Add our sitename in browsers noproxy settings.
In Mozilla:
Method 1
* Open Tools >> options
* Select network tab under advanced tab.
* Click button settings.
* Choose no proxy and press ok.
Method 2
* Open Tools >> options
* Select network tab under advanced tab.
* Click button settings.
* Choose Manual proxy configuration and enter the proxy details.
* Enter subsite in noproxy for text box. Like localhost,subsite
* Then press ok.
9. Restart the apache server. Then run the subsite as http://subsite. It will show the drupal installation window.
10. Follow the drupal installation steps.