House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Local Dev Environment Troubles w/ Virtual Host- ColdFusion Builder

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan Kraus
03/20/2012 08:04 PM

Hi All, long time reader, first time poster! But I'm beating my head against the wall here... I've been developing locally in CFBuilder on Windows 7. When I installed CFBuilder I used the "Built-In Webserver" option rather than local IIS or Apache or something else. Things have been working fine - I could access my server at http://localhost:8300, set up databases, and do the typical things one would expect. I have a few different projects in the root server each in their own folder. However, this required browsing to http://localhost:8300/myProjectFolder but to simulate the production sites, this couldn't continue. I wanted to set it up so I could do http://myproject.dev or some variation but the problem is I can't quite figure out how, or at least how to do it correctly. In my local server aptly named LocalDev configuration from CFBuilder, I added a Virtual Host named myproject.dev, Host name, myproject.dev, Port 8300 (same as the server) over http and pointed at my document root which lives in the cf server root folder. I had a multi-instance install so the path is C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\myProject I then right clicked on my project >Properties>Coldfusion Server Settings and selected my server with the virtual host. "LocalDev-myproject.dev" and see a Sample Url of http://myproject.dev:8300/ Now it looks like all systems go but when I try to browse there to a basic txt file right in the root http://myproject.dev:8300/readme.txt Chrome says "Oops! Google Chrome could not connect to myproject.dev:8300" Firefox equivalent is "The connection has timed out The server at myproject.dev is taking too long to respond." What am I doing wrong!? I'm going nuts over here! Thanks!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Azadi Saryev
03/20/2012 09:05 PM

add a record into your hosts file linking myproject.dev to localhost ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan Kraus
03/21/2012 01:01 AM

Someone else made this suggestion too. Here was my reply: I did try that actually, but that ultimately just points it right back to going to http://localhost:8300 where I see the index of all the folders in the server root. It doesn't take me into the myproject folder. >add a record into your hosts file linking myproject.dev to localhost

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrew Scott
03/21/2012 01:54 AM

I don't think the ColdFusion built in web server is capable of this sort of setup, and you may have to look at IIS or apache and setup the web connectors. Secondly, the wwwroot in ColdFusion is not really the ideal place that I would store my projects. And I would maybe look at moving these to somewhere else on the Hard Drive and set up IIS or Apache to look at those folders. Then use the Web Connector from ColdFusion to setup IIS / Apache to then server the ColdFusion files. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan Kraus
03/21/2012 02:07 AM

Yeah, it seems to be that I might have to go that route. What the heck is the point of the Virtual Hosts set up then? Any idea what it should accomplish? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andrew Scott
03/21/2012 02:14 AM

I have no idea to be totally honest, but I think it is for Apache. But I have no idea to be honest. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Russ Michaels
03/21/2012 06:33 AM

if you run CF in multiserver mode then you could create a new cf instance for each site, in which case you can have a separate web root/virtual host for each site as well using the built in web server This would probably be overkill for most people though. If you are running windows 7 then you can install a FULL ediiton of IIS7, I suggest downloading the "web platform installer" and using this to setup a web server as it also does a lot of other stuff too On Wed, Mar 21, 2012 at 6:13 AM, Andrew Scott <andrews@andyscott.id.au>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bobby Hartsfield
03/20/2012 09:38 PM

Did you add a hosts file entry for "127.0.0.1  myproject.dev" so it knows how to resolve it? .:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com Hi All, long time reader, first time poster! But I'm beating my head against the wall here... I've been developing locally in CFBuilder on Windows 7. When I installed CFBuilder I used the "Built-In Webserver" option rather than local IIS or Apache or something else. Things have been working fine - I could access my server at http://localhost:8300, set up databases, and do the typical things one would expect. I have a few different projects in the root server each in their own folder. However, this required browsing to http://localhost:8300/myProjectFolder but to simulate the production sites, this couldn't continue. I wanted to set it up so I could do http://myproject.dev or some variation but the problem is I can't quite figure out how, or at least how to do it correctly. In my local server aptly named LocalDev configuration from CFBuilder, I added a Virtual Host named myproject.dev, Host name, myproject.dev, Port 8300 (same as the server) over http and pointed at my document root which lives in the cf server root folder. I had a multi-instance install so the path is C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\myProject I then right clicked on my project >Properties>Coldfusion Server Settings and selected my server with the virtual host. "LocalDev-myproject.dev" and see a Sample Url of http://myproject.dev:8300/ Now it looks like all systems go but when I try to browse there to a basic txt file right in the root http://myproject.dev:8300/readme.txt Chrome says "Oops! Google Chrome could not connect to myproject.dev:8300" Firefox equivalent is "The connection has timed out The server at myproject.dev is taking too long to respond." What am I doing wrong!? I'm going nuts over here! Thanks!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan Kraus
03/21/2012 12:55 AM

I did try that actually, but that ultimately just points it right back to going to http://localhost:8300 where I see the index of all the folders in the server root. It doesn't take me into the myproject folder. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan Kraus
03/21/2012 12:56 AM

I did try that actually, but that ultimately just points it right back to the server root. No difference from going to http://localhost:8300 where I see the index of all the folders in the server root. It doesn't take me into the myproject folder. combined with the CF Virtual host. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/21/2012 01:41 PM

----- Excess quoted text cut - see Original Post for more ----- Andrew is right. The built-in web server doesn't support multiple virtual servers. You need an external web server for that (IIS or Apache). Alternatively, you could install another CF instance into your multiserver install, which would have its own web server (probably on TCP/8301). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

July 28, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference