If I have a website called www.reality-agents.com, how will I create
individual hostnames like bill.reality-agents.com or
manish.reality-agents.com that would share the same codebase?
Both dave.reality-agents.com and bill.reality-agents.com should go to the
same pre-decided aspx page and finally the contents rendered would entirely
depend upon the url that is requested, meaning the contents of
dave.reality-agents.net would differ from bill.reality-agents.net.
Any help would be appreciated.

Re: DNS entries and shared codebase by jeff

jeff
Sat Jan 22 09:22:48 CST 2005

On Fri, 21 Jan 2005 15:23:02 -0800, Sameer
<Sameer@discussions.microsoft.com> wrote:

>If I have a website called www.reality-agents.com, how will I create
>individual hostnames like bill.reality-agents.com or
>manish.reality-agents.com that would share the same codebase?
> Both dave.reality-agents.com and bill.reality-agents.com should go to the
>same pre-decided aspx page and finally the contents rendered would entirely
>depend upon the url that is requested, meaning the contents of
>dave.reality-agents.net would differ from bill.reality-agents.net.

You want the same page, only different...? :)

Point both host records at the same IP address. Use the
Response.ServerVariables function to pull the headers and branch based
on the requested header. Ask about coding this in a .NET group, it's
not IIS.

Jeff