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

Faking subdomains for development computer.

P: n/a

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.

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Thu, 14 Jul 2005 22:24:02 -0500, <cr************@hotmail.com> wrote:

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.


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/mjor...2/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.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2

P: n/a
Not on XP, but it works like a charm on 2003 (as a desktop)

http://www.vbbox.com/blog/2004/09/de...n-windows.html
--
Klaus H. Probst, MVP
http://www.simulplex.net/
<cr************@hotmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...

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.

Nov 19 '05 #3

P: n/a
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/multip...ofessional.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...
======================

"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:op***************@cowboy.hsd1.mn.comcast.net. ..
On Thu, 14 Jul 2005 22:24:02 -0500, <cr************@hotmail.com> wrote:

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.


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/mjor...2/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.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.