Re: directory configuration issue w/2K pro

From: Tom Kaminski [MVP] ((A_at_T))
Date: 07/08/04


Date: Thu, 8 Jul 2004 16:31:12 -0400


"Jeff B." <26oo@cox.net> wrote in message
news:MUhHc.23089$Ch.9825@okepread04...
> First off, accept my apologies if this has been discussed before... I
tried
> numerous searches but was unable to find any relevant info...
>
> My problem is this:
>
> I have 3 different websites residing on the same machine.
>
> abc.com references redirect to \inetpub\wwwroot\abc
> stu.com references redirect to \inetpub\wwwroot\stu
> xyz.com references redirect to \inetpub\wwwroot\xyz
>
> within the code for these sites I reference url's like "/file.aspx" which
in
> turn accesses files located at \inetpub\wwwroot\abc\file.aspx for
example...
>
> this works perfectly on the server, which is a win2k server machine.
> however, on my win2k pro development machine I am unable to create
multiple
> websites to provide this type of directory remapping. to work properly in
> this environment the code needs to be changed to reference
"/abc/file.aspx".
> this is obviously a headache. is there a way that I can make IIS do this
> mapping on a win2k pro machine? i'm NOT looking to have it work for all
> sites at the same time (that would be nice but i've already read that this
> isn't possible w/o win2k server), i'm willing to go into the IIS config
> manager to change something when i switch between working on abc.com and
> xyz.com. i've looked at virtual directories, but they don't allow me to
> specify a "null" alias name, which is what i really need in this case...
i
> need the url http://localhost/file.aspx to actually load
> \inetpub\wwwroot\abc\file.aspx.
>
> i have this terrible feeling that i'm missing something very simple that
> could solve this problem.

What you should really do is define three virtual server sites using host
headers, such that:
abc.com references \inetpub\abcroot as its root folder
stu.com references \inetpub\sturoot as its root folder
xyz.com references \inetpub\xyzroot as its root folder
http://support.microsoft.com/?kbid=190008
http://www.iisfaq.com/Default.aspx?tabid=2523

Setup the same folder structure on W2K Pro and then just change the root
folder to the appropriate site as needed (W2K Pro only allows for one web
site at a time).

-- 
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com


Relevant Pages

  • Re: [Full-Disclosure] Windows 2000 Source Leak Verified. Get ready for the havoc.
    ... Indeed -- there are some public domain references (from folk who should ... "leaked" .ZIPs show that there is quite a bit of cruft included (.EML ... NT 4.0 Server except IIS, ... No references to Mainsoft ...
    (Full-Disclosure)
  • ASP.NET mismatch
    ... "Visual Studio .NET has detected that the Web server is running ASP.NET ... I verified our webserver was running ASP.NET version 1.1 by going to IIS ... And by inspecting the Solution references ...
    (microsoft.public.vc.ide_general)
  • Re: Option for .NET version 3.5 not in IIS Manager?
    ... references to so called .NET 3.5 assemblies in your web.config file to take ... project in VS2008 and selected the 3.5 version of NET framework. ... I am presuming that the install ... registers the new framework with IIS. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS2003 hangs creating ASP.NET webservice
    ... Run aspnet_regiss /i with the 2.0 command prompt. ... That should get rid of all ... references to 1.1 in IIS. ...
    (microsoft.public.vsnet.general)
  • using Word 2003 references to create documents using c#
    ... I'm developing an application and I need to create some word documents. ... My machine is a Win2k Pro and I use Office 2000. ... able to use the references of Word 2003 and .NET. ... Almeida ...
    (microsoft.public.dotnet.framework.windowsforms)