I think you are going about it the wrong way. If you going to run local copies of a site or different sites, you should establish them in different directories. Here's a very simple and straightforward process for setting up IIS 7 or 7.5. As long as you have PHP installed it will work for all sites.
Part 1
- Open up notepad.exe in administrative mode
- Locate your hosts file (C:\Windows\System32\drivers\etc) -[NOTE: No extension on hosts]
- Add another site IP / name like so:
Examples
#102.54.94.97 rhino.acme.com
127.0.0.1 localhost
127.0.0.2 testsite
127.0.0.3 testsite_etc
NOTE: If you are doing development testing you can leave off the .com and make up a name for use just like 'localhost'. The 'POUND' sign will comment out any lines.
Part 2
- Now add a new site (website) in IIS
- Name the site anything you want
- Select a folder where your website files are. (This is the root folder)
- Specify the IP address you added to the host's file (Example 127.0.0.2)
- For the hostname, specify the name you used in the host's file (testsite)
- Leave the port to 80, and http or https as needed for your site
- Make sure site is scheduled to start up by default.
NOTE Item 3 Above: This allows you to have sites in their own directories, It's a common misconception that you need to post all sites in inetpub/wwwroot/...
Part 3
Simply type in a browser address bar: testsite/ or 127.0.0.2/ and your site should load. If directory discover is off you'll also need to type out your default page... (E.G. testsite/index.php)
I've got a machine running 30 separate sites all using PHP to handle them from a single installation. The above example is for development testing, you can search for the differences when you go live for an IIS machine and need DNS forwarding to actual IP addresses.