S
Stan Sainte-Rose
Hi,
I need some help on this topic.
I have a generic website where I would like to point different domain names
as well as virtual directories.
Right now, I create for each domain name a directory, I store a copy of the
generic website
and I set a value to a variable into my global.asa called
Application("IDSITE")= xxx
With this variable, I know which datas I have to use with my Database.
Using this system, that means If I make updates or add new asp pages
I have to copy them into each directory.
So my question is, how to avoid this..
Is there a way within IIS to add a value (which will be the IDSITE) for each
domain name or virtual directories ?
The goal would be to create a directory for each domain names where I will
just put a global.asa and use a generic directory (where the generic
website will be stored)
Or is it possible to use conditions within the global.asa.
Something like this :
Select Case DomainName
Case "firstdomainename.com"
Application("IDSITE")=1
Case "seconddomainename.com"
Application("IDSITE")=2
Case "thirddomainename.com"
Application("IDSITE")=3
End Select
But in this case how to know which domain name and "VIRTUAL DIRECTORY" was
called
For the domain name, I think I can use the Server variable "Server_name" or
"http_host"
but for the virtual directory I don't know how to control it.
Any help ?
Stan
I need some help on this topic.
I have a generic website where I would like to point different domain names
as well as virtual directories.
Right now, I create for each domain name a directory, I store a copy of the
generic website
and I set a value to a variable into my global.asa called
Application("IDSITE")= xxx
With this variable, I know which datas I have to use with my Database.
Using this system, that means If I make updates or add new asp pages
I have to copy them into each directory.
So my question is, how to avoid this..
Is there a way within IIS to add a value (which will be the IDSITE) for each
domain name or virtual directories ?
The goal would be to create a directory for each domain names where I will
just put a global.asa and use a generic directory (where the generic
website will be stored)
Or is it possible to use conditions within the global.asa.
Something like this :
Select Case DomainName
Case "firstdomainename.com"
Application("IDSITE")=1
Case "seconddomainename.com"
Application("IDSITE")=2
Case "thirddomainename.com"
Application("IDSITE")=3
End Select
But in this case how to know which domain name and "VIRTUAL DIRECTORY" was
called
For the domain name, I think I can use the Server variable "Server_name" or
"http_host"
but for the virtual directory I don't know how to control it.
Any help ?
Stan