By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,480 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,480 IT Pros & Developers. It's quick & easy.

One web.config, for multiple domains

P: n/a
I have various domains using the same application/assembly

They differ in contents and design, based on a "site id", and get its
information from an SQL server.

Now I have to deploy the different "sites" to individual folders on the
server, and set up the domains on IIS to point to these folders.
If I do changes in the application, I have to deploy to all the different
folders on the server.

What I want to do is to have one single root web, and let all the domains
point to this in IIS.
Then I have to deploy only once.

The problem is. How do I configure web.config, to allow me to use multiple
domains, sharing a common application and root folder.
Nov 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
You could use a virtual root below your main directory and keep a main
directory. That said I would still question the expected benefits.

Is deployement that hard ? Y'oull have now all of your sites tireds...

Patrice

--

"Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:KV*********************@news.telia.no...
I have various domains using the same application/assembly

They differ in contents and design, based on a "site id", and get its
information from an SQL server.

Now I have to deploy the different "sites" to individual folders on the
server, and set up the domains on IIS to point to these folders.
If I do changes in the application, I have to deploy to all the different
folders on the server.

What I want to do is to have one single root web, and let all the domains
point to this in IIS.
Then I have to deploy only once.

The problem is. How do I configure web.config, to allow me to use multiple
domains, sharing a common application and root folder.

Nov 19 '05 #2

P: n/a
No, deployment isn't that hard, but when the number of sites using the same
application increases, the advantage is clear.

I'm not sure I understood the use of virtual root.

So, there is no way to configure this in web.config, then??

"Patrice" <no****@nowhere.com> skrev i melding
news:OT**************@tk2msftngp13.phx.gbl...
You could use a virtual root below your main directory and keep a main
directory. That said I would still question the expected benefits.

Is deployement that hard ? Y'oull have now all of your sites tireds...

Patrice

--

"Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:KV*********************@news.telia.no...
I have various domains using the same application/assembly

They differ in contents and design, based on a "site id", and get its
information from an SQL server.

Now I have to deploy the different "sites" to individual folders on the
server, and set up the domains on IIS to point to these folders.
If I do changes in the application, I have to deploy to all the different folders on the server.

What I want to do is to have one single root web, and let all the domains point to this in IIS.
Then I have to deploy only once.

The problem is. How do I configure web.config, to allow me to use multiple domains, sharing a common application and root folder.


Nov 19 '05 #3

P: n/a
re:
The problem is. How do I configure web.config,
to allow me to use multiple domains, sharing a
common application and root folder.
Actually, web.config has nothing to do with that.

You can have as many web.configs as
there are subdirectories of your application.

What you want to do is configure one application
to serve as the source for multiple domains.

Maybe, if you want to run a single application,
in global.asax -in Session_OnStart- you could
sniff/parse the URL coming in, and redirect to
the appropiate domain.

But, ASP.NET was not written with that possibility in mind.

You, generally, work with different applications
when they are hosted in different domains.


Juan T. Llibre
ASP.NET MVP
===========
"Ludvig" <gj******@fastpublish.no> wrote in message
news:UF*********************@news.telia.no... No, deployment isn't that hard, but when the number of sites using the
same
application increases, the advantage is clear.

I'm not sure I understood the use of virtual root.

So, there is no way to configure this in web.config, then?? "Patrice" <no****@nowhere.com> skrev i melding
news:OT**************@tk2msftngp13.phx.gbl...
You could use a virtual root below your main directory and keep a main
directory. That said I would still question the expected benefits.

Is deployement that hard ? Y'oull have now all of your sites tireds...

Patrice "Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:KV*********************@news.telia.no...
> I have various domains using the same application/assembly
>
> They differ in contents and design, based on a "site id", and get its
> information from an SQL server.
>
> Now I have to deploy the different "sites" to individual folders on the
> server, and set up the domains on IIS to point to these folders.
> If I do changes in the application, I have to deploy to all the
> different folders on the server.
>
> What I want to do is to have one single root web,
> and let all the domains point to this in IIS.
> Then I have to deploy only once.
>
> The problem is. How do I configure web.config, to allow me to use
> multiple domains, sharing a common application and root folder.

Nov 19 '05 #4

P: n/a
Not sure but you could likely do something like :
- the application root is a directory that is on each and every server, this
way you have a distinct web config file for each
- under the application root you create a virtual that points to your app
single copy

Note that AFAIK 2.0 will allow to deploy a whiole site as as single DLL.

My personal preference would be still to automate deployement on distinct
servers (it could be just a batch) to keep the ability to manage separately
those sites...

Patrice

--

"Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:UF*********************@news.telia.no...
No, deployment isn't that hard, but when the number of sites using the same application increases, the advantage is clear.

I'm not sure I understood the use of virtual root.

So, there is no way to configure this in web.config, then??

"Patrice" <no****@nowhere.com> skrev i melding
news:OT**************@tk2msftngp13.phx.gbl...
You could use a virtual root below your main directory and keep a main
directory. That said I would still question the expected benefits.

Is deployement that hard ? Y'oull have now all of your sites tireds...

Patrice

--

"Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:KV*********************@news.telia.no...
I have various domains using the same application/assembly

They differ in contents and design, based on a "site id", and get its
information from an SQL server.

Now I have to deploy the different "sites" to individual folders on the server, and set up the domains on IIS to point to these folders.
If I do changes in the application, I have to deploy to all the different folders on the server.

What I want to do is to have one single root web, and let all the domains point to this in IIS.
Then I have to deploy only once.

The problem is. How do I configure web.config, to allow me to use multiple domains, sharing a common application and root folder.



Nov 19 '05 #5

P: n/a
Tanks

"But, ASP.NET was not written with that possibility in mind.
You, generally, work with different applications
when they are hosted in different domains."

May be this was no good idea after all.
"Juan T. Llibre" <no***********@nowhere.com> skrev i melding
news:em*************@TK2MSFTNGP15.phx.gbl...
re:
The problem is. How do I configure web.config,
to allow me to use multiple domains, sharing a
common application and root folder.


Actually, web.config has nothing to do with that.

You can have as many web.configs as
there are subdirectories of your application.

What you want to do is configure one application
to serve as the source for multiple domains.

Maybe, if you want to run a single application,
in global.asax -in Session_OnStart- you could
sniff/parse the URL coming in, and redirect to
the appropiate domain.

But, ASP.NET was not written with that possibility in mind.

You, generally, work with different applications
when they are hosted in different domains.


Juan T. Llibre
ASP.NET MVP
===========
"Ludvig" <gj******@fastpublish.no> wrote in message
news:UF*********************@news.telia.no...
No, deployment isn't that hard, but when the number of sites using the
same
application increases, the advantage is clear.

I'm not sure I understood the use of virtual root.

So, there is no way to configure this in web.config, then??

"Patrice" <no****@nowhere.com> skrev i melding
news:OT**************@tk2msftngp13.phx.gbl...
You could use a virtual root below your main directory and keep a main
directory. That said I would still question the expected benefits.

Is deployement that hard ? Y'oull have now all of your sites tireds...

Patrice "Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:KV*********************@news.telia.no...
> I have various domains using the same application/assembly
>
> They differ in contents and design, based on a "site id", and get its
> information from an SQL server.
>
> Now I have to deploy the different "sites" to individual folders on the > server, and set up the domains on IIS to point to these folders.
> If I do changes in the application, I have to deploy to all the
> different folders on the server.
>
> What I want to do is to have one single root web,
> and let all the domains point to this in IIS.
> Then I have to deploy only once.
>
> The problem is. How do I configure web.config, to allow me to use
> multiple domains, sharing a common application and root folder.


Nov 19 '05 #6

P: n/a
Thanks

I'll give it a try..
"Patrice" <no****@nowhere.com> skrev i melding
news:uL**************@TK2MSFTNGP15.phx.gbl...
Not sure but you could likely do something like :
- the application root is a directory that is on each and every server, this way you have a distinct web config file for each
- under the application root you create a virtual that points to your app
single copy

Note that AFAIK 2.0 will allow to deploy a whiole site as as single DLL.

My personal preference would be still to automate deployement on distinct
servers (it could be just a batch) to keep the ability to manage separately those sites...

Patrice

--

"Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:UF*********************@news.telia.no...
No, deployment isn't that hard, but when the number of sites using the

same
application increases, the advantage is clear.

I'm not sure I understood the use of virtual root.

So, there is no way to configure this in web.config, then??

"Patrice" <no****@nowhere.com> skrev i melding
news:OT**************@tk2msftngp13.phx.gbl...
You could use a virtual root below your main directory and keep a main
directory. That said I would still question the expected benefits.

Is deployement that hard ? Y'oull have now all of your sites tireds...

Patrice

--

"Ludvig" <gj******@fastpublish.no> a écrit dans le message de
news:KV*********************@news.telia.no...
> I have various domains using the same application/assembly
>
> They differ in contents and design, based on a "site id", and get its > information from an SQL server.
>
> Now I have to deploy the different "sites" to individual folders on the > server, and set up the domains on IIS to point to these folders.
> If I do changes in the application, I have to deploy to all the

different
> folders on the server.
>
> What I want to do is to have one single root web, and let all the

domains
> point to this in IIS.
> Then I have to deploy only once.
>
> The problem is. How do I configure web.config, to allow me to use

multiple
> domains, sharing a common application and root folder.
>
>



Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.