<p>At work, we have multiple branches that we may be working on at any time. 
Our solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be. </p>

<p>I just want to go to the URL, mapped in my hosts file, for that branch and it just work. </p>

<p>Our client machines are XP machines with IIS 5.1. Is there any way to make IIS 5.1 run more than one web-site simultaneously?</p>

[{'answer_id': 34303, 'author': 'Martin', 'author_id': 770, 'author_profile': 'https://Stackoverflow.com/users/770', 'pm_score': 1, 'selected': False, 'text': '<p>I believe it is a restriction of IIS that you can only run more than one website on server versions of the windows OS.</p>\n'}, {'answer_id': 34315, 'author': 'Biri', 'author_id': 968, 'author_profile': 'https://Stackoverflow.com/users/968', 'pm_score': 3, 'selected': True, 'text': '<p>Yes, it is a restriction and this one website can have only 10 simultanious connections.</p>\n\n<p>Buy a Windows 2003 or 2008 Small Business Edition, it is quite cost-effective in this scenario.</p>\n'}, {'answer_id': 34323, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 0, 'selected': False, 'text': '<p>One way you could solve this without reinstalling your computer is to create each branch in a virtual subdirectory under you current web-root. Then at the top-level website, create a default.asp(x) the reads <code>Request.ServerVariables["SERVER-NAME"]</code> (should be underscore) and redirects the browser to whatever virtual directory/application you want to access. That way you can create all the "virtual" domains you want in your hosts file.</p>\n'}, {'answer_id': 34337, 'author': 'John Owen', 'author_id': 2471, 'author_profile': 'https://Stackoverflow.com/users/2471', 'pm_score': 2, 'selected': False, 'text': '<p>Are virtual directories an option for you?  I run multiple versions of the same website this way.</p>\n'}, {'answer_id': 34341, 'author': 'John Hunter', 'author_id': 2253, 'author_profile': 'https://Stackoverflow.com/users/2253', 'pm_score': 0, 'selected': False, 'text': '<p>With Windows XP and IIS 5.1 you cannot run moultiple web sites.</p>\n\n<p>You can however run multiple ASP.NET hosts.  You would probably have to write the host your self.</p>\n\n<p>Something like this should get you started:</p>\n\n<pre>\nstring FileLoction = "..Path to the branch..";\nHttpListenerWrapper lw = (HttpListenerWrapper)ApplicationHost.CreateApplicationHost(\n               typeof(HttpListenerWrapper), "/", FileLocation);\n\nstring[] prefixes = new string[] \n{\n   "http://localhost:8081/",\n   "http://127.0.0.1:8081/"\n};\n\nlw.Configure(prefixes, "/", FileLocation);\nlw.Start();\n</pre>\n'}, {'answer_id': 81859, 'author': 'blowdart', 'author_id': 2525, 'author_profile': 'https://Stackoverflow.com/users/2525', 'pm_score': 0, 'selected': False, 'text': "<p>Picking up on Biri's answer rather than choose SBS there is a specific Windows Server Web edition which is the cheapest of all, around $399 and doesn't require CALs.</p>\n\n<p>Otherwise, if it's just for developer machines Vista Ultimate allows multiple IIS sites hosted simultaneously.</p>\n"}, {'answer_id': 92607, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Oddly enough, this is something I remember Jeff covering ages ago, but I guess it\'s still relevant if you\'re on IIS 5.1:</p>\n\n<p><a href="http://www.codinghorror.com/blog/archives/000329.html" rel="nofollow noreferrer">http://www.codinghorror.com/blog/archives/000329.html</a></p>\n'}]
['https://Stackoverflow.com/questions/34301', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/854/']