Posts
22
Comments
693
Trackbacks
9
Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista

I installed the freely available Microsoft Virtual Server 2005 R2 SP1 Enterprise Edition on my Windows Vista machine today and noticed that the setup did not let me add the Administration Web Site for Virtual Server on a different web site than the default web site. Instead the only option was to have it added as a virtual directory to the default web site running on port 80. However, I expose the default web site to the outside world (as a matter of fact I run this blog off that machine), so I did not want to have the virtual directory for my Virtual Server exposed to the outside world as well. Since I couldn't find anything on Ben Armstrong's blog about this I decided to share my findings here.

So what does it take to configure IIS7 on Windows Vista to have the Virtual Server Administration Web Site in a separate web site and a different port? Follow these simple steps:

  1. First of all, make sure you are running one of the supported editions of Windows Vista. Basically the Starter and Home editions don't even let you install IIS7, and Home Premium does not support Windows Authentication, so only the Business, Enterprise, and Ultimate editions have the required features.
  2. Before installing Virtual Server, you need to enable the right options for IIS7 in Control Panel -> Programs and Features -> Turn Windows Features on or off. See this post on Ben Armstrong's blog for details on which options need to be installed.
  3. Execute the Virtual Server installer.
  4. Open the Internet Information Services (IIS) Manager from Administrative Tools.
  5. You will see that a virtual directory called VirtualServer has been added underneath your Default Web Site. Right-click on the parent folder of the Default Web Site called Web Sites and select Add Web Site...
  6. Fill in a name. I used Virtual Server, but you can pick any name you want. You can use the DefaultAppPool with the web site, or you can create a separate app pool if needed. However, since the Virtual Server web site is CGI and not ASP.NET, I believe it does not make much difference either way.
  7. The Physical Path should point to C:\Program Files\Microsoft Virtual Server\WebSite or whichever directory you installed Virtual Server into. Make sure it points to the WebSite subfolder.
  8. Pick a port other than 80, so that the web site cannot be accessed from the outside world. If you want to expose the web site to the outside world, you should still pick a port that cannot be easily guessed by a stranger for security purposes. Even if someone guesses the right port the web site will not be completely exposed, since Windows Authentication will require correct credentials to display the web site. By default, the Virtual Server setup will use port 1024 if it creates a separate web site automatically (presumably on a Windows Server 2003 system).
  9. If you are not exposing the web site to the outside world, simply enter localhost as the Host header, otherwise enter your desired Host header. If you want to access the administration web site from a different computer within your network, make sure to also add a second binding to the actual host name of the machine.
  10. Leave the Start web site immediately checkbox checked and click Ok.
  11. Now click on the web site you just created in the web sites tree so that the configuration icons for the web site appear in the IIS management console. You can ignore the ASP.NET configuration settings, since as I said before already this is not an ASP.NET application.
  12. Open the Authentication configuration settings and disable everything except Windows Authentication.
  13. In Handler Mappings, make sure CGI-exe is enabled. If it is not enabled, right-click on it and select Edit Handler Permissions, then check all permissions, in my case Execute was unchecked and needed to be checked.
  14. Done!
  15. Open a browser and test your configuration by navigating to http://<hostname>:<port>/. If you entered localhost in step 9 and for example port 1234 in step 8, the address would be http://localhost:1234/. The Virtual Server Administration Web Site should come up successfully.
  16. You can now remove the virtual directory that was created by the setup from your default web site.

 

Troubleshooting:

  • If you open the web site in your browser and it offers you the CGI application as a download, you did not enable CGI execution on the web site. Make sure you followed steps 2 and 13 above.
  • If the administration web site comes up but says "Could not connect to Virtual Server. Access Denied. Please contact Virtual Server administrator to set the required permissions to manage Virtual Server.", then you did not enable Windows Authentication. Make sure you followed steps 1 and 12 above.
  • If you get a HTTP 400 Bad Request error in your browser, you probably didn't set up the host header for the web site correctly. Make sure you followed step 9 above.
posted on Tuesday, December 11, 2007 12:57 AM Print
Comments
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
FileCraft
12/2/2010 3:37 AM
I have been configuring webservers with ftp for some years now and have just installed Windows Vista Ultimate and tried to configure a default
ftp site as normal.
I have increased the timeout to a minute and checked all of the
suggested fixes but I still get the same error and cannot connect.
Does anyone have any idea what IIS7 (I know its IIS6 that deals with FTP in Vista) does with FTP thats so different and what I'd need to do to fix it?
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
jocuri fotbal
1/15/2011 2:27 PM
You can now remove the virtual directory that was created by the setup from your default web site.
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
business continuity
3/4/2011 11:51 AM
I can't believe they don't make this easier. I hate using default web sites and IP addresses especially if it's accessible from the Internet. It's too easy to find and hack into.
Gravatar
# clothing manufacturer
clothing manufacturer
3/7/2011 11:41 AM
I have increased the timeout to a minute and checked all of the
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
mensagens
4/8/2011 12:43 PM
The IP restriction list can be configured to deny content access by a single computer, a group of computers, a domain, or all IP addresses and unlisted entries. This provides support for inheritance and merging of IP restriction rules in addition to IIS 6.0 grant/deny support.
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
Kindle Blog
8/20/2011 10:43 AM
If cost of hosting is very cheap nowadays is it necessary to run IIS on local machine at home? I will prefer to use outsourcing to save my time.
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
Shakeel
11/24/2011 3:45 AM
Thank you for the detailed guide. It work fine for me on Windows 7 Enterprise 64bit. The only thing I did is; when you install the Virtual Server then add your username which you are logged on to that computer where you are installing. Good Luck guys
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
shine
12/15/2011 11:43 AM
IIS is compulsory for web application. I have some problems while configuring it. Cover Letters For Teachers
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
jimy03
1/1/2012 10:30 AM
The best time to get anything electronic is on Black Friday. While that fact has always held true, it is going to be especially good this year.black friday kindle fire
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
sunshine
1/23/2012 6:32 AM
Rye Bread Recipes Many people are allergic to wheat bread. So, for such people taking rye bread can be an alternative way to satiate the cravings for bread.
Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
moonshine
2/4/2012 8:15 PM
world wonders The seven World Wonders list of the ancient times was initially recorded approximately in the 2nd century BC. 

Gravatar
# re: Configuring a separate Virtual Server Administration Web Site with IIS7 on Windows Vista
old food pyramid
2/5/2012 9:33 AM
Nice blog having having useful information. Keep this sort of valuable work in future. I will be back after some time
Gravatar
# COMMENTS
ornaddash
6/12/2013 8:38 PM
I bumped into your post. I don't usually post in blogs but your blog forced me to. Awesome work! Thank you for sharing! http://golfclubgolfcourse.co.uk/
Gravatar
# COMMENTS
razaahsangojra
6/13/2013 1:42 AM
Its really a very interesting posting indeed. Thanks for sharing such interesting posting with us. http://ppscjobsinfo.com/
Gravatar
# COMMENTS
http://healthfitnessfitness24.co
6/13/2013 3:54 AM
Its an unique article having some interesting news about the culture, i like it. Its really fun and cool. But i want to know something more about this…. http://healthfitnessfitness24.co.uk/

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 6 and 8 and type the answer here:
News
Welcome! This is the blog of a .NET software development enthusiast living in Silicon Valey, California, USA. The opinions posted here are my own and in no way represent the opinions of my employer or anybody else.