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
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
That wouldnt be a problem if you only did business in one country.
But a LOT of web sites do business around the globe, when no matter
what the time is, it's business hours in some part of the world. A
VERY LARGE number of web sites of all sizes have no time down for
maintenance, except on rare
There are NO commercial sites in Australia that I know of that
habitually shut down for anything more than a minute or two EVER.
Habitually? Where are you getting this stuff from mate?
Who said anything about habitually? Are you even reading the same posts
stuff I'm posting?
I'll bet you
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
One solution is to have a table of sub-domains that refer to the main
application config table: lookup domain.com or blog.domain.com or
www.domain.com and find the parent config record for www.domain.com.
In that case, you can then add dev.domain.com to the sub-domain table,
but you'd still
One technique for this is to alias the CGI variables you use:
cfset CGI_SERVERNAME = CGI.SERVER_NAME /
And when you're developing locally, you can set that value as something else
to mimic the host you want to simulate.
cfif CGI_SERVERNAME is localhost
!---// put host to simulate here
You can make up whatever entries you want in your hosts file, and it
will work on your local machine.
127.0.0.1test1.loc
127.0.0.1test2.loc
127.0.0.1test3.loc
127.0.0.1yo.mama
127.0.0.1my.mama
127.0.0.1free.beer
Whatever you want. I would recommend NOT adding host
One solution is to have a table of sub-domains that refer to the main
application config table: lookup domain.com or blog.domain.com or
www.domain.com and find the parent config record for www.domain.com.
In that case, you can then add dev.domain.com to the sub-domain table,
but you'd
127.0.0.1free.beer
My belly would ping flood this domain.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Jason Fisher's answer is exactly what I'd do. IIS configuration (assuming
you're using IIS) is actually the more tedious step. Perhaps adding an
additional IP to your NIC and pointing your Hosts records at it would
provide simple configuration of IIS for this monster domain app (routing by
Perhaps a good approach might be to use fictitious domains
locally, since I'm planning to develop sites that are void
of client content until the client works with the app to supply
every piece of data and asset.
That way, I avoid using any client assets in development locally,
isolating the
I just confirmed that this idea works. The only downside is your NIC will
require static IP addresses.
On Feb 24, 2011 8:38am, jqdur...@gmail.com wrote:
Jason Fisher's answer is exactly what I'd do. IIS configuration (assuming
you're using IIS) is actually the more tedious step. Perhaps
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
Ha! Give your own PC a DOS attack? :)
Thanks,
Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com
On 2/24/2011 8:31 AM, Michael Grant wrote:
127.0.0.1free.beer
My belly would ping flood this domain.
Why not use mydomain.com.dev? Then just strip off the .dev before using
the server name variable while in production. This doesn't really seem like
that big of a hurdle.
On Feb 24, 2011 8:38am, Rick Faircloth r...@whitestonemedia.com wrote:
Perhaps a good approach might be to use
Oops... typo. You will only see .dev in DEVELOPMENT. Therefore, you'll
need to strip it off in development, rather than production.
On Feb 24, 2011 8:47am, jqdur...@gmail.com wrote:
Why not use mydomain.com.dev? Then just strip off the .dev before using
the server name variable while in
If I understand the root of what you're proposing,
it would be to use a local faux variable, CGI_SERVERNAME,
and assign the true CGI.SERVER_NAME to that, and finally
assigning the value of CGI_SERVERNAME to _host.
The _host value would be the value in the local hosts file.
One part that is
Yes, that's what I was thinking. I mentioned in a response
a moment ago, the idea of using an entirely separate local
development environment, including all data and assets, from
everything on the development environment, and, in turn, from
the production environment.
Local:
127.0.0.1
You need to disable that automated subroutine
that keeps pinging everyone 5 minutes for free.beer...
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Thursday, February 24, 2011 9:32 AM
To: cf-talk
Subject: Re: I think I'm confused...
127.0.0.1free.beer
My
I eagerly await your test results!
(and further details!) :o)
-Original Message-
From: jqdur...@gmail.com [mailto:jqdur...@gmail.com]
Sent: Thursday, February 24, 2011 9:39 AM
To: cf-talk
Subject: Re: RE: I think I'm confused...
Jason Fisher's answer is exactly what I'd do. IIS
I was under the impression you were wanting to test different domain
settings, locally, and the method I mentioned allows you to quickly switch
between one domain to the next by just changing the aliased CGI variable.
This approach has nothing to do with your hosts file though, so I'm not sure
if
Bummer... I'm not sure I can get a static IP address.
I've currently got a business-class DSL line running
for which I could probably get a static IP for additional cost.
However, I just responded to a proposal from Comcast
to user cable broadband at higher rates at half the price
of the DSL.
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:
Yes, that seems like it would work as well as
pre-pending local as Steve suggested:
local.www.domain.com or www.domain.com.dev.
Either of these would work as long as local dev
is kept entirely separate from production in terms
of variables, etc, which would be dependent on the
actual domain
I guess I could use:
local.domain01.com
local.domain02.com
dev.domain01.com
dev.domain02.com
www.domain01.com
www.domain01.com
But as I've been thinking here, if I keep the local
variables and assets completely separate from the
production side, any local domains can be used without
Slight side track:
We have about 100+ staging sites here at CFWT for various clients. I got
tired of adding client1.cfwebtools.com and client2.cfwebtools.com to the
DNS server evertime I had a new site. About 65% of ours sites on non special
needs sites and are all on a single CF8 server. So at
What I'm trying to accomplish (which perhaps has been slowly
modified over the course of this thread :o) is setting
up an easily maintained MSOC development environment for
all levels; local, development, and production.
At first, I was thinking about perhaps needing to mimic
actual client
You may be able to take it a step further and on your Development Server
just have the IIS default website point to your MSOC site. Then, you
won't need to fool with any IIS entries, just add whatever urls you want
to your local hosts file and have the IP address point to your Dev
Server.
Sounds like a really good approach for those non-special-needs sites.
-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com]
Sent: Thursday, February 24, 2011 10:36 AM
To: cf-talk
Subject: RE: I think I'm confused...
Slight side track:
We have about 100+ staging
True, true...
-Original Message-
From: Eric Cobb [mailto:cft...@ecartech.com]
Sent: Thursday, February 24, 2011 10:44 AM
To: cf-talk
Subject: Re: I think I'm confused...
You may be able to take it a step further and on your Development Server
just have the IIS default website point
I have done that as well. You can do a local dns server but it is a lot
easier to just mod the hosts file than to mod a local dns server.
-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com]
Sent: Thursday, February 24, 2011 04:22
To: cf-talk
Subject: RE: I think
Special thanks goes out to Jason, who just helped me
set up a separate IP on my PC for local dev. Now all
I have to do is edit the hosts file using the new IP
for local development.
Cool...
:o)
-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com]
Sent:
Hi,
for security we store xls documents in a non-web root folder. We then use a
cfcontent tag to serve the file to the user.
the problem is when the user clicks the link they are displayed a download
dialogue and all is fine if they click 'open with ms excel', but if they click
'save as' it
You need to use the cfheader tag and tell it the filename.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk]
Sent: Friday, 25 February 2011 5:22 AM
To: cf-talk
Subject: cfcontent and save as
Hi,
for
This question comes up pretty often. I don't remember if there's actually a
fix or not. I remember people having problems despite using cfheader to
define content-type and disposition.
Perhaps some of these will help:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528
As long as you use attachment as well as filename in the cfcontent you will
never have a problem.
So it should something like this
cfheader name=Content-Disposition value=Attachment;FILENAME=#FileName#
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From:
Ah, these are the threads I was remembering.
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62324#339820
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62324#339820
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62327#339828
38 matches
Mail list logo