David
Fri Jul 28 06:20:27 CDT 2006
I presume your setup looks like this:
C:\websites\IL\ourtown -- contains content for ourtown
C:\websites\css\Universal.css
http://someplace.com points to C:\websites
http://ourtown.com points to C:\websites\IL\ourtown
ourtown web pages originally reference /css/Universal.css because
http://someplace.com/ pointed to C:\websites
But this breaks when accessed from
http://ourtown.com since
http://ourtown.com/css/Universal.css does not exist.
You fix this by creating a virtual directory at
http://ourtown.com/css that
points to C:\websites\css
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Nate Baxley" <nbaxley@gmail.com> wrote in message
news:1154070925.941666.51690@i42g2000cwa.googlegroups.com...
> Thanks for the quick reply Ken. I'll give this a try. One potential
> problem I see is that there are a lot of common elements that are used
> across all of these towns. When I have them each in a subdirectory,
> it's easy to refer them to the root of the site and then down to where
> I need them. In the scenario you propose, that would still work for
> Server Side paths (I'm using PHP here, and can just set the appropriate
> include path), but do you have any ideas on the server side. I can no
> longer reference /css/Universal.css for example. I suppose that I
> could just use the full url (
http://someplace.com/css/Universal.css)
> which would work in both places, but it seems a bit "brute force". Any
> takers on another way around this problem?
>
> Thanks again,
> Nate Baxley
> PAQ Interactive, Inc.
>
http://www.paqinteractive.com
>
>
> Ken Schaefer wrote:
>> Create a new website. Set the Host Header value to be ourtown.com. Set
>> the
>> Home directory for that website to be the c:\inetpub\wwwroot\IL\Outtown
>> (or
>> whever you are storing the "ourtown" folder.
>>
>> That way, you meet your requirements whilst keeping only one copy of the
>> code.
>>
>> Cheers
>> Ken
>>
>> "Nate Baxley" <nbaxley@gmail.com> wrote in message
>> news:1154056337.643742.313760@p79g2000cwp.googlegroups.com...
>> > OK, Here is my situation. I'm running IIS6 on 2K3 Web edition and I
>> > need to do the following setup. I have a site running that uses a lot
>> > of directories, so an example might be someplace.com/IL/Ourtown takes
>> > you to the site for Ourtown, IL. Now if Ourtown registers ourtown.com,
>> > I want to be able to serve requests to that domain and to the
>> > someplace.com/IL/Ourtown address as well. And of course I don't want
>> > to have two copies of the code. Now take this to the extreme and
>> > consider that there are lots of towns on the someplace.com domain and
>> > that many of them are going to want their own domain. What's the best
>> > way to handle this?
>> >
>> > Thanks for any ideas,
>> > Nate Baxley
>> > PAQ Interactive, Inc.
>> >
http://www.paqinteractive.com
>> >
>