You can't do this, not to my knowledge, but how many subdomains do you
need for your testing? Just make a few:

127.0.0.1        dave.domain.com
127.0.0.1        alan.domain.com
127.0.0.1        bert.domain.com
127.0.0.1        fred.domain.com
127.0.0.1        phil.domain.com

Then you've got enough to be getting on with. Incidentally, Ruby on
Rails allows you to do something like:

request.subdomains(0).first

Which is very straightforward. Here is some more information on doing
this on RoR, which may be useful to you:

http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys



On 24/11/06, Dan Bunea <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thank you all for the replies. The * solution seem brilliant. For testing 
> purposes, on Windows XP, in etc/host file, could does anyone know how to map 
> something like:
>
> 127.0.0.1          *.test_domain.ro
>
> It seems it does not support wildcards, and I am out of my domain when it 
> comes to DNSes and configuring such things.
>
> Thanks again,
> Dan
>
>
> On 11/24/06,  josh robb <[EMAIL PROTECTED]> wrote:
>
> >  Personally - I prefer to work with the whole host name - rather than
> > just the sub-domain.
> >
> > Request.ServerVariables["SERVER_NAME"]
> >
> > It makes it trivial to introduce multiple "root" domains later.
> >
> > e.g. basecamp lets you choose between multiple domains (updatelog.com,
> > clientsection.com, seework.com,  grouphub.com etc...).
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > CastleProject-users mailing list
> > CastleProject-users@lists.sourceforge.net
> >  https://lists.sourceforge.net/lists/listinfo/castleproject-users
> >
>
>
>
>
> --
> Dan Bunea
> http://danbunea.blogspot.com
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> CastleProject-users mailing list
> CastleProject-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/castleproject-users
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
CastleProject-users mailing list
CastleProject-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to