sharing root include files across many sites

sharing root include files across many sites

am 19.09.2007 07:04:01 von cal

have a question.

we have a large web site that uses ASP and virtual include files to piece
pages together. so /includes/header.asp is used all over.

What we want to do is set up subdomains of our site and make them their own
site.

For example, our main site is www.foo.edu and we want to set up
admissions.foo.edu, financialaid.foo.edu, etc. so that when a user goes to
these sites the name is the address bar of the browser.

When you set up a site this way it seems it wants it own set of includes
files. We want to be able to share the root include files for all these
sites. Is there a way to do this? Can we set a path for shared files across
many sites?

Thanks.

Re: sharing root include files across many sites

am 19.09.2007 08:40:05 von David Wang

On Sep 18, 10:04 pm, Cal wrote:
> have a question.
>
> we have a large web site that uses ASP and virtual include files to piece
> pages together. so /includes/header.asp is used all over.
>
> What we want to do is set up subdomains of our site and make them their own
> site.
>
> For example, our main site iswww.foo.eduand we want to set up
> admissions.foo.edu, financialaid.foo.edu, etc. so that when a user goes to
> these sites the name is the address bar of the browser.
>
> When you set up a site this way it seems it wants it own set of includes
> files. We want to be able to share the root include files for all these
> sites. Is there a way to do this? Can we set a path for shared files across
> many sites?
>
> Thanks.


IIS does not enforce any requirements nor restrictions on such include
file sharing.

It seems like your issue stems from how you implement/use includes
(you seem to rely on the virtual namespace to partition your includes,
which would be affected when you repartition different hostnames).

Use physical file includes, or restructure your include files such
that the root include files is available as a vdir in all the child
sites.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//