Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Faking subdomains for development computer.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
craigkenisston@hotmail.com - 15 Jul 2005 04:24 GMT
In an application I'm developing I will be using subdomains in the main
website to hold some sections of the sites.
There will be many serverside generated links that will point to this
subdomains. I already have subdomains in a preproduction server and it
works fine then, but how do I do that here in my development machine ??
I have WindowsXP SP2, but I don't see anyplace where I can create
subdomains, since everything are actually virtual folders.
Any advise or different approach to accomplish this is very welcome.
Craig Deelsnyder - 15 Jul 2005 05:52 GMT
> In an application I'm developing I will be using subdomains in the main
> website to hold some sections of the sites.
[quoted text clipped - 4 lines]
> subdomains, since everything are actually virtual folders.
> Any advise or different approach to accomplish this is very welcome.

XP only allows 1 website per PC.  Only the server products support  
multiple websites...

Well, there are some 'workarounds', you can technically create more than 1  
website in IIS on XP Pro, you just can't run more than 1 at 1 time, which  
is pry why XP doesn't even bother letting you create more than 1.

Google and you'll find a few workarounds:

http://dotnetjunkies.com/WebLog/mjordan/archive/2003/12/30/5033.aspx
http://www.codeproject.com/csharp/IIsAdminNet.asp

BTW, I think this is a design issue IMHO.  I never hardcode domain names  
in my application (for my web apps, I do for truly external links tho), I  
make them configurable via web.config, as a possiblity.  So then you can  
setup each environment properly without having to worry about these type  
of hacks, or requiring Server 2000/2003, etc.

Signature

Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Juan T. Llibre - 15 Jul 2005 06:43 GMT
I just answered this in the
"Server Application Unavailable" thread.

See :
http://www.codinghorror.com/blog/archives/000329.html
and
http://www.xoc.net/works/tips/multiple-iis-sites-professional.asp
and
http://www.firstserved.net/services/iisadmin.php
for more workarounds.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

>> In an application I'm developing I will be using subdomains in the main
>> website to hold some sections of the sites.
[quoted text clipped - 21 lines]
> properly without having to worry about these type  of hacks, or requiring Server
> 2000/2003, etc.
Klaus H. Probst - 15 Jul 2005 06:19 GMT
Not on XP, but it works like a charm on 2003 (as a desktop)

http://www.vbbox.com/blog/2004/09/developing-web-applications-on-windows.html

Signature

Klaus H. Probst, MVP
  http://www.simulplex.net/

> In an application I'm developing I will be using subdomains in the main
> website to hold some sections of the sites.
[quoted text clipped - 4 lines]
> subdomains, since everything are actually virtual folders.
> Any advise or different approach to accomplish this is very welcome.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.