Good idea. After modifying the hosts file to an actual domain I also have on my server, I realized that when I open the domain in a browser, I get the local version of the site, as I should. But, how then do I get back to the server version of the site? Do I have to take the domain back out of the local hosts file?
-----Original Message----- From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] Sent: Wednesday, February 23, 2011 10:10 PM To: cf-talk Subject: RE: I think I'm confused... Here's another tip on this (cause I have to open my hosts file 20 times a week). Drag the hosts file to the desktop with the left mouse and choose "create short cut". Then right-click on the short cut and choose "properties" Change the "target" from C:\WINDOWS\system32\drivers\etc\hosts To... Notepad.exe "C:\WINDOWS\system32\drivers\etc\hosts" Then you can open and edit it willy nilly... -mark Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -----Original Message----- From: Jason Durham [mailto:jqdur...@gmail.com] Sent: Wednesday, February 23, 2011 9:02 PM To: cf-talk Subject: Re: I think I'm confused... Run Notepad.exe as Administrator Open C:\windows\system32\drivers\etc\hosts (no file extension) Add "127.0.0.1 www.mydomain.com" to the last line Open web server and configure to route by hostname "www.mydomain.com" Windows (by default) looks to your hosts file for name resolution before checking a DNS server. I do something like this for all of my dev sites. Sent from my iPhone On Feb 23, 2011, at 8:52 PM, "Rick Faircloth" <r...@whitestonemedia.com> wrote: > > I've started working on an MSOC application > and was setting up some test code which uses > the cgi.server_name as the determining value > for setting all the specific site variables. > > Then, I realized that this wouldn't work for > local development using "http://localhost" because > there would be not cgi.server_name (except localhost) > to reference in the browser. > > I guess I can set up a domain in the database > for "localhost" and treat that the same way I would > treat a regular domain, but I wouldn't be able to > switch between various sites locally that way. > > Is an MSOC app testable for various domains only > on a server, where DNS is running, as opposed to locally? > > (There is probably a simple solution for this, but > I've been reading and thinking about this so much > I "can't see the forest for the trees!" > > ??? > > Rick > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:342547 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm