473,394 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Faking subdomains for development computer.


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
3 1767
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: steve | last post by:
Hi I am writing an application which ideally requires the creation of subdomains dynamically via asp. However I want all the subdomains to point to 1 asp file, which I wish to use to figure out...
3
by: | last post by:
I am working on a web/webservice application that has a service layer. Most service methods will perform an access-check before executing. This check uses the IPrincipal credentials available in...
2
by: craigkenisston | last post by:
Hi, I create a one day ticket in my authentication code like this : private void btnLogin_Click(object sender, System.EventArgs e) { string _userId = txtUserId.Text; string _password =...
4
by: radiax | last post by:
Is there a way to associate or bind a subdomain to a tcp sockets under .net framework (vb.net / c#). I know ip address can be used when using sockets, but the problem is the ip address is shared...
1
by: Hans Kesting | last post by:
Hi, Is it possible to share sessions between subdomains? Say: the user logs in at www.company.com, and is redirected to my.company.com. This is a different url for the same application. Can I...
8
by: Kenny Lai | last post by:
hey, Is there a way to communicate between iframes on different subdomains? e.g. from one.dot.com to two.dot.com? there is a security access restriction passing javascript commands between...
2
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
I just got my own domain at dardel.info My host allows me to create subdomains. Let's assume I have created music.dardel.info On my computer, the files are in a folder of my site: mySite/music (or...
4
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
Hi, I am using Visual Studio 2003. After moving my project to a new development computer my project compiles and works on the new development computer but the program will not work when I...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.