Hi all,
I'm tring to configure multiple site on IIS 7.5 in Windows Server 2008 R2 installed in my virtual machine.
My virtual Machine has the IP: 172.31.28.29 so I'm following this steps:
1. I select "Add web site..." and I create all my sites inserting the name, the physical path and the right application pool.
2. For the Binding configuration, I select FOR ALL SITES: Type = http; IP Address = 179.31.28.29 (my VM IP) and Port = 80, and then I choose the Host name.
3. I open the "host" file under the path: "/windows/system32/drivers/etc" and I write:
172.31.28.29 mysite01
172.31.28.29 mysite02
172.31.28.29 mysite03
Well, if now I try to access this site INSIDE THE VIRTULA MACHINE, using for example the url "http://mysite01/" it works fine and I see the web site.
If I try to access the same site OUT THE VIRTUAL MACHINE, using the path: "http://172.31.28.29/mysite01/" I receive the ERROR:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
To bypass this error I have to go inside the "Default web site" in the IIS site tree, and "Convert to application" the folder of "mysite01". But in this way the site is no longer visible...
So, I'm missing some steps to configure multiple web site, this is not the right way to do it, or it's not possible o reach my gol?
Thanks for any help.
Igor