PDA

View Full Version : Hosing a new site with new domain


bash_ban
11-04-2008, 06:41 AM
Hi,

I have an account with discountasp with a site hosted already. Now I would like to add another web site with a new domain i registered recently. How to do this. Kindly help.

BR.

wisemx
11-04-2008, 07:02 AM
Hi,
There are a lot of ways to do this, some of the best being with IIS7 now.
You can add domains to your current account as Pointers.
Then create your additional site, placing it in its own folder.
From your Control Panel create an application for that folder.
Now in the root of your site use code to sniff and redirect the incoming domain requests.
Salute,
Mark


Technical Evangelist for DiscountASP.NET
http://www.iis7test.com/webcasts/
http://weblogs.asp.net/markwisecarver/
http://blogs.windowsclient.net/wisecarver/default.aspx

(Microsoft IT Usability http://msitusability.multiply.com/)

richleah
11-28-2008, 03:11 AM
Wisemx, With DASP, do we have enough access to IIS 7 to make the changes you mention? If so, can we do it through the control panel, or do we need to put in a support ticket?

Aristotle
11-28-2008, 10:20 AM
We support domain pointers that only point to the root, therefore, www.a.com (http://www.a.com) and www.b.com (http://www.b.com) will have the exact same content. For www.b.com (http://www.b.com) to have separatefiles and content, it would have to be a totally separate hosting account. The redirecting is a workaround and not full-proof.

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

andrewdiscountasp
11-28-2008, 12:47 PM
I understand the concept to this.
But..

Assuming the root domain is www.a.com (http://www.a.com) and the domain pointer is www.b.com (http://www.b.com)
I can understand if a user types in www.b.com (http://www.b.com) you could have a aspx page looking to redirect the user.. but if the user types www.b.com/somethingelse (http://www.b.com/somethingelse) then wouldn't the server try to go to a folder/application called soemthignelse and then return an error.

Baxter
12-01-2008, 03:22 AM
In your advertising you state 'Multiple applications can be hosted in one account'.

From the last post, it seems as though this is not really the case.

I suggest you update you advertising before you get sued.

Eric
12-01-2008, 05:47 AM
You can host multiple asp.net applications in one hosting account. You can use the Web Application tool to set any subfolder as its own application starting point.
Eric
DiscountASP.NET - Microsoft Gold Partner
- Best ASP.NET Web hosting: 2008, 2007, 2006, 2005 - asp.netPRO Magazine
- Best ASP.NET Web Hosting: 2007, 2005 - Visual Studio Magazine
- kb.discountasp.net - community.discountasp.net - www.daspblog.com (http://www.daspblog.com/)

Eric
12-02-2008, 04:32 AM
For the applications, you would put them in separate subfolders. So the URL would be domain.com/app1 and domain.com/app2

If you want to point different domains to the apps, then you would use the root domain pointer addon to point additional domains to the root of your hosting account. Then programically redirect the domains to the subfolder.


Eric
DiscountASP.NET - Microsoft Gold Partner
- Best ASP.NET Web hosting: 2008, 2007, 2006, 2005 - asp.netPRO Magazine
- Best ASP.NET Web Hosting: 2007, 2005 - Visual Studio Magazine
- kb.discountasp.net - community.discountasp.net - www.daspblog.com (http://www.daspblog.com/)

Baxter
12-02-2008, 10:54 AM
So what url would I use to access each of this applications?

And can I assign a different domain name to each?