That would work easily, it seems.

Drawbacks?



-----Original Message-----
From: DURETTE, STEVEN J (ATTASIAIT) [mailto:sd1...@att.com] 
Sent: Thursday, February 24, 2011 9:48 AM
To: cf-talk
Subject: RE: I think I'm confused...


When I'm working on my local development I just add local.

So:
127.0.0.1       local.www.durette.org

That way I keep the url close to the original for code purposes, but I
can get to the real site just by not putting in local.

Steve


-----Original Message-----
From: Eric Cobb [mailto:cft...@ecartech.com] 
Sent: Thursday, February 24, 2011 9:20 AM
To: cf-talk
Subject: Re: I think I'm confused...


You can make up whatever entries you want in your hosts file, and it 
will work on your local machine.

127.0.0.1    test1.loc
127.0.0.1    test2.loc
127.0.0.1    test3.loc
127.0.0.1    yo.mama
127.0.0.1    my.mama
127.0.0.1    free.beer

Whatever you want.  I would recommend NOT adding host entries for actual

sites that you want to really pull up in the browser (your dev server, 
production sites, etc...) as it really just becomes a pain having to 
switch back and forth/.

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com


On 2/24/2011 7:00 AM, Rick Faircloth wrote:
> I could easily see that working for single sites,
> but if I'm developing a "multiple sites, one codebase"
> application that depends on reading specific domain
> names for setting sites variables, that means I have
> to have those dev.mydomain domains in the local hosts
> file, as well.
>
> I could just use the "mydomain" part of the url for
> identification, but as someone pointed out earlier
> in the MSOC discussion, that wouldn't account for
> subdomains, if they're used, such as blog.mydomain, etc.
>
> Any thoughts on this concern?
>
> Rick
>
>
> -----Original Message-----
> From: Mike Kear [mailto:afpwebwo...@gmail.com]
> Sent: Thursday, February 24, 2011 6:04 AM
> To: cf-talk
> Subject: Re: I think I'm confused...
>
>
> I use different domain names.  I have www.mydomain.com for the live
> server site,  and dev.mydomain for my  local development sites
>
> Then in my hosts file, i have the line:
>
> 127.0.0.1 dev.mydomain
>
> for each client site i have.   With apache, the local dev versions and
> remote server versions behave in an identical manner
>
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> Adobe Certified Advanced ColdFusion Developer
> AFP Webworks
> http://afpwebworks.com
> ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month
>
>
>
> On Thu, Feb 24, 2011 at 9:21 PM, Rick Faircloth
> <r...@whitestonemedia.com>  wrote:
>> Ok... thanks Mark and Eric
>>
>> We need a better solution available to developers
>> to be able to switch between local and server DNS.
>>
>> Perhaps, a switch of some kind that could be inserted
>> into a URL to tell a browser to use a local hosts file
>> if that switch is present.
>>
>> http://local/www.xyz.com
>> or
>> http://l:www.xyz.com
>>
>> That would certainly be a *lot* easier than constantly
>> editing that hosts file.
>>
>> But it's good to know that I can use a local DNS file
>> that way!
>>
>>
>>
>
>
> 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342573
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to