Re: CFBuilder 2 Virtual Hosts
I just wanted to thank everyone for their assistance on this. I tried a whole bunch of different things here, but couldn't get it to work. So I decided to start over. I uninstalled IIS, and renamed the old \inetpub folder. I rebooted, then reinstalled IIS (to get a clean install). I created a new website for my first app (app1) at C:\inetpub\wwwroot\app1\wwwroot in IIS. Then I reran the CF web connector and configured all IIS websites. I tweaked the IIS settings for the app1 website and got CF working. I opened CFBuilder, and deleted the projects I previously created. Then I deleted my local CF server so I could start over. In troubleshooting various issues, I had come across this guide on Adobe's website for configuring CF and CFBuilder for local development: http://www.adobe.com/devnet/coldfusion/articles/setup_dev.html I followed this guide pretty much step by step (except that I'm using IIS instead of Apache. The key thing to note is setting up URL Prefix mappings for each local site. So I created one for http://local.app1 with the local path C:\inetpub\wwwroot\app1\wwwroot. This appears to work well. I can even preview pages in the IE and Firefox tabs, and when I press CTRL-ALT-E to open in external browser (configured for Chrome), it loads the page in Chrome just fine. So, I guess this is another case of RTFM!! Lesson learned. Thanks again, Carl On 9/14/2011 1:08 PM, Carl Von Stetten wrote: > I'm a complete CFBuilder n00b (just installed this morning for first time). > > I've been developing for years using Dreamweaver, so this is going to be a > huge change for me. > > OK, now to the problem. > > I develop on a 64-bit Windows 7 PC. I have IIS 7.5 running local versions of > the intranet applications I develop. I have a separate IIS web site for each > application, and ColdFusion 9.01 is connected to IIS and all the sites work > from a browser. My sites run from folders under C:\WebSites. > > In my hosts file, I have defined site names linked to 127.0.0.1 (local.app1 > and local.app2). This all works fine. > > Now I have installed CFBuilder. I configured my local server per the Adobe > help, or at least as far as I understand. My server shows up in the Servers > window. > > I'm confused as to how I configure a project. Do I point the project to the > actual website's code folder (ie: C:\WebSites\app1\wwwroot), or to the > default folder for the project (ie: C:\Users\myUserName\Adobe ColdFusion > Builder workspace/local.app1)? > > I tried putting a copy of the codebase in the project's default folder, but I > can't preview any pages in the Firefox or IE tabs. I get the message: > > "Selected file is not in the document root of the server. If the project is > not in the document root, create a linked folder to the document root > (selecting Project Properties> ColdFusion Project)." > > What am I doing wrong? How do others set up CFBuilder with locally hosted > IIS sites? > > > > ~| 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:347495 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Carl, When I create a project I don't use the default location (witch is where your workspace is saved), but I point to a folder in the wwwroot-folder of my CF server. This way I can still test my apps in the browser. Kind regards, Guust Nieuwenhuis On 14 Sep 2011, at 22:08, Carl Von Stetten wrote: > > I'm a complete CFBuilder n00b (just installed this morning for first time). > > I've been developing for years using Dreamweaver, so this is going to be a > huge change for me. > > OK, now to the problem. > > I develop on a 64-bit Windows 7 PC. I have IIS 7.5 running local versions of > the intranet applications I develop. I have a separate IIS web site for each > application, and ColdFusion 9.01 is connected to IIS and all the sites work > from a browser. My sites run from folders under C:\WebSites. > > In my hosts file, I have defined site names linked to 127.0.0.1 (local.app1 > and local.app2). This all works fine. > > Now I have installed CFBuilder. I configured my local server per the Adobe > help, or at least as far as I understand. My server shows up in the Servers > window. > > I'm confused as to how I configure a project. Do I point the project to the > actual website's code folder (ie: C:\WebSites\app1\wwwroot), or to the > default folder for the project (ie: C:\Users\myUserName\Adobe ColdFusion > Builder workspace/local.app1)? > > I tried putting a copy of the codebase in the project's default folder, but I > can't preview any pages in the Firefox or IE tabs. I get the message: > > "Selected file is not in the document root of the server. If the project is > not in the document root, create a linked folder to the document root > (selecting Project Properties > ColdFusion Project)." > > What am I doing wrong? How do others set up CFBuilder with locally hosted > IIS sites? > > > > ~| 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:347481 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
> Justin, Are you using CF 9 Developer Edition on you local machine? > If so, do you have it installed as a standalone (single instance) install, > or a multi-server (J2EE) install? If standalone, what does your Document > Root point to on the ColdFusion Server Setup screen for Local Server > Settings? Is your Server Home set to "C:\ColdFusion9" or similar? I do run CF locally in developer mode, standalone but under IIS 7.5 (rather than the CF built-in web server). CF's document root is set to the standard default root for IIS [c:\inetpub\wwwroot]. Each site has its own folder, usually based on the domain name, and there are sub-folders under that for components, sub-sites, etc, so the main site might be [c:\inetpub\wwwroot\example.com\www] with a management console at [c:\inetpub\wwwroot\example.com\manage]. I would use host entries that point back to 127.0.0.1 for manage.example.com, dev.example.com (rather than www so I can still browse the live site, but I'd point dev.example.com to the www folder locally), etc. IIS then has each site configured to use the example.com\www folder as the webroot. Within Builder, I generally keep a separate "project" for each sub-section, so one site might have a project for the main site, a project for the management site, a project for shared components, etc. Each developer will have their own slightly different workflow, but I find this works well for me. Previously I was working on a lot of live servers, so I was using Homesite+ with FTP directly to the live servers without any sort of local development environment to speak of. I'm sure you'll a method that works well for you as well. -Jus ~| 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:347479 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Carl that is exactly how I do it. Now when you create a server inside of CFB, there is a mappings tab. On this tab you will need to add the mapping to the wwwroot. That might seem strange I know, but when you create a project like this, this is needed. If this is locally I am not sure you need anything more, I take it that you have right mouse on the project and gone to coldfusion server and selected the server for the project. Now I am going from memory here, but I am sure that when I did it this way in a normal ColdFusion project, you should also be doing the step I mentioned above. But because I uses SES and an MVC framework, I can never have the option to browse the website like you are wanting too. So if you are in this position, then you will be having the same problem. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 9:29 AM, Carl Von Stetten wrote: > > What I've done is start a new project in CFBuilder, and pointed the > project to the folder one step above the IIS site's webroot (which is > C:\WebApps\App1\wwwroot), so the project folder would be C:\WebApps\App1. > > Do I need to set the CFBuilder server's document root to be pointing at > C:\WebApps\App1\wwwroot also? > > Right now, my IIS site runs entirely out of the wwwroot folder (CFCs are > in subfolders of the wwwroot folder. > > Carl > > ~| 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:347478 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
What I've done is start a new project in CFBuilder, and pointed the project to the folder one step above the IIS site's webroot (which is C:\WebApps\App1\wwwroot), so the project folder would be C:\WebApps\App1. Do I need to set the CFBuilder server's document root to be pointing at C:\WebApps\App1\wwwroot also? Right now, my IIS site runs entirely out of the wwwroot folder (CFCs are in subfolders of the wwwroot folder. Carl On 9/14/2011 4:13 PM, Andrew Scott wrote: > Carl, > > Do you have a wwwroot inside your project? If so then you need to look at > your server settings inside CFB2, that means you need to apply the mappings > in there, as well as what Russ was saying with the virtual host. > > But if you are like me and also use any form of MVC or SES, then you will > not get it to work in CFB2. > > > -- > Regards, > Andrew Scott > WebSite: http://www.andyscott.id.au/ > Google+: http://plus.google.com/108193156965451149543 > ~| 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:347477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFBuilder 2 Virtual Hosts
Carl, Do you have a wwwroot inside your project? If so then you need to look at your server settings inside CFB2, that means you need to apply the mappings in there, as well as what Russ was saying with the virtual host. But if you are like me and also use any form of MVC or SES, then you will not get it to work in CFB2. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 -Original Message- From: Carl Von Stetten [mailto:vonner.li...@vonner.net] Sent: Thursday, 15 September 2011 9:08 AM To: cf-talk Subject: Re: CFBuilder 2 Virtual Hosts Justin, Are you using CF 9 Developer Edition on you local machine? If so, do you have it installed as a standalone (single instance) install, or a multi-server (J2EE) install? If standalone, what does your Document Root point to on the ColdFusion Server Setup screen for Local Server Settings? Is your Server Home set to "C:\ColdFusion9" or similar? Carl ~| 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:347475 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFBuilder 2 Virtual Hosts
Yeah I do understand that Russ, maybe its more because I use SES and MVC so I really don't use that side of things. Secondly as far as two copies goes I think that goes to how people setup their projects, personally I always create my project and the point IIS to that wwwroot in that project. That way I don't have two copies at all, at least until I send it to my staging server. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: Thursday, 15 September 2011 9:01 AM To: cf-talk Subject: Re: CFBuilder 2 Virtual Hosts Andrew, I think your misunderstanding what I mean. If you have multiple websites in IIS or Apache, every site must be unique in order to browse them. There are 3 ways to do this. different IP address on each site different port on each site different host header on each site host headers is clearly the easiest and best way to remember the url for each site, and if you do not use the hosts file to do this then you are going to need a live IP address and to register real domains, which would be pretty pointless not to mention a waste of money. As for the project. If you have the website at c:\inetpub\wwwroot\mydomain.com and you have your project at c:\my documents\projects\mydomain.com This is clearly 2 copies of the files Perhaps we are talking about different things. ~| 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:347474 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Justin, Are you using CF 9 Developer Edition on you local machine? If so, do you have it installed as a standalone (single instance) install, or a multi-server (J2EE) install? If standalone, what does your Document Root point to on the ColdFusion Server Setup screen for Local Server Settings? Is your Server Home set to "C:\ColdFusion9" or similar? Carl On 9/14/2011 2:01 PM, Justin Scott wrote: >> I guess I'm confused about the difference between wwwroot >> and project root. Do people in this type of environment do >> their code editing in the same place as IIS serves the site from? > I use CFB2 and IIS 7.5 locally and have both set to the same location > (i.e. the webroot and my project root are the same path). The OP was > referring to using the "preview" feature which I don't use; I just > keep a separate browser window open with the local site loaded and > browse/refresh from there to test changes. > > > -Justi > > ~| 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:347473 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Andrew, I think your misunderstanding what I mean. If you have multiple websites in IIS or Apache, every site must be unique in order to browse them. There are 3 ways to do this. different IP address on each site different port on each site different host header on each site host headers is clearly the easiest and best way to remember the url for each site, and if you do not use the hosts file to do this then you are going to need a live IP address and to register real domains, which would be pretty pointless not to mention a waste of money. As for the project. If you have the website at c:\inetpub\wwwroot\mydomain.com and you have your project at c:\my documents\projects\mydomain.com This is clearly 2 copies of the files Perhaps we are talking about different things. On Wed, Sep 14, 2011 at 11:08 PM, Andrew Scott wrote: > > Russ, > > This is the argument that I had when this was still in the beta stages with > the engineers. > > You DON'T need the virtual hosts when developing locally, or running locally > at all. The actual reason it is there is actually for remote sites, and even > then it still can use information that is in the project. > > I proved this to the engineers via a connect session. > > I never fill this information in and I have sites that are running locally, > and sites that are running in VirtualBox. And I still never ever used those > settings. > > That was CFB1, I can no longer get anything to work in CFB 2 when it comes > to viewing the site. Even if I tell the project to use the index.cfm when > browsing the site in CFB2, so I just gave up. I tried using this with > Virtual Hosts as well as mappings like the error tells you too, but nothing > would work for me. > > And you don't need to run two copies of your project/site like you claim > either... > > > -- > Regards, > Andrew Scott > WebSite: http://www.andyscott.id.au/ > Google+: http://plus.google.com/108193156965451149543 > > > On Thu, Sep 15, 2011 at 7:59 AM, Russ Michaels wrote: > >> >> If you are running a local webserver then just set your project root >> to the wwwroot, this is fine otherwise you would have to maintain 2 >> copies of your project. >> not everyone runs a local web server, some people will develop a >> project locally then upload it to a testing server, as you can do with >> Dreamweaver. >> >> you do need entries in your local hosts file otherwise there will be >> no way for you to browse your local sites, unless you put each site on >> its own port and use http://localhost:port/ which will just get >> confusing, much better to use host headers. >> Remember you can use REAL domain name, so you can use >> dev.realdomain.com for each site. >> >> >> -- >> >> Russ Michaels >> >> > > > ~| 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:347472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Russ, This is the argument that I had when this was still in the beta stages with the engineers. You DON'T need the virtual hosts when developing locally, or running locally at all. The actual reason it is there is actually for remote sites, and even then it still can use information that is in the project. I proved this to the engineers via a connect session. I never fill this information in and I have sites that are running locally, and sites that are running in VirtualBox. And I still never ever used those settings. That was CFB1, I can no longer get anything to work in CFB 2 when it comes to viewing the site. Even if I tell the project to use the index.cfm when browsing the site in CFB2, so I just gave up. I tried using this with Virtual Hosts as well as mappings like the error tells you too, but nothing would work for me. And you don't need to run two copies of your project/site like you claim either... -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 7:59 AM, Russ Michaels wrote: > > If you are running a local webserver then just set your project root > to the wwwroot, this is fine otherwise you would have to maintain 2 > copies of your project. > not everyone runs a local web server, some people will develop a > project locally then upload it to a testing server, as you can do with > Dreamweaver. > > you do need entries in your local hosts file otherwise there will be > no way for you to browse your local sites, unless you put each site on > its own port and use http://localhost:port/ which will just get > confusing, much better to use host headers. > Remember you can use REAL domain name, so you can use > dev.realdomain.com for each site. > > > -- > > Russ Michaels > > ~| 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:347471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
If you are running a local webserver then just set your project root to the wwwroot, this is fine otherwise you would have to maintain 2 copies of your project. not everyone runs a local web server, some people will develop a project locally then upload it to a testing server, as you can do with Dreamweaver. you do need entries in your local hosts file otherwise there will be no way for you to browse your local sites, unless you put each site on its own port and use http://localhost:port/ which will just get confusing, much better to use host headers. Remember you can use REAL domain name, so you can use dev.realdomain.com for each site. -- Russ Michaels www.bluethunderinternet.com : Business hosting services & solutions www.cfmldeveloper.com : ColdFusion developer community www.michaels.me.uk : my blog www.cfsearch.com : ColdFusion search engine sky ~| 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:347470 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Would you mind sharing some screenshots of how you configured your local server, and how you configured the project? Do you have multiple applications set up as distinct projects in your CFB setup? On 9/14/2011 2:01 PM, Justin Scott wrote: >> I guess I'm confused about the difference between wwwroot >> and project root. Do people in this type of environment do >> their code editing in the same place as IIS serves the site from? > I use CFB2 and IIS 7.5 locally and have both set to the same location > (i.e. the webroot and my project root are the same path). The OP was > referring to using the "preview" feature which I don't use; I just > keep a separate browser window open with the local site loaded and > browse/refresh from there to test changes. > > > -Justi > > ~| 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:347469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
Dude, he was the original poster. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 7:01 AM, Justin Scott wrote: > > > I guess I'm confused about the difference between wwwroot > > and project root. Do people in this type of environment do > > their code editing in the same place as IIS serves the site from? > > I use CFB2 and IIS 7.5 locally and have both set to the same location > (i.e. the webroot and my project root are the same path). The OP was > referring to using the "preview" feature which I don't use; I just > keep a separate browser window open with the local site loaded and > browse/refresh from there to test changes. > > > -Justi > > ~| 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:347468 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
I don't, but Adobe seems to think this is the norm. Personally I setup my project root to mimic my server, so in my example the project root might contain something like this. ProjectRoot ->ColdBox (linked mapping) ->Logs ->Sql Scripts ->unitTests ->mxunit (linked mapping) ->wwwroot -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 6:55 AM, Carl Von Stetten wrote: > > I guess I'm confused about the difference between wwwroot and project > root. Do people in this type of environment do their code editing in > the same place as IIS serves the site from? > > ~| 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:347467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
> I guess I'm confused about the difference between wwwroot > and project root. Do people in this type of environment do > their code editing in the same place as IIS serves the site from? I use CFB2 and IIS 7.5 locally and have both set to the same location (i.e. the webroot and my project root are the same path). The OP was referring to using the "preview" feature which I don't use; I just keep a separate browser window open with the local site loaded and browse/refresh from there to test changes. -Justi ~| 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:347466 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
I guess I'm confused about the difference between wwwroot and project root. Do people in this type of environment do their code editing in the same place as IIS serves the site from? On 9/14/2011 1:36 PM, Andrew Scott wrote: > If wwwroot is not your project root, CFbuilder needs a mapping. Which the > message tries to give you the place to add it, but with these sort of > setups, and yours is identical to the way I use them by the sounds of it. > > I have never ever got this to work, even in CFB1. > > Virtual Hosts is not the answer, and really is a misleading, because it > really is not even needed in the setup. > > But for some reason someone asked for it during the CFB1 alpha/beta and > nobody understood that it was not needed. But I can be proved wrong if > someone can clarify its exact purpose that can't be done elsewhere in CFB. > > Now the problem you describe is something that is difficult to work, and I > have done it, but can't seem to get it to work in CFB2 where I had gotten it > to work in CFB1. > > But the message is telling you exactly where you need to add the mapping. > > > ~| 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:347465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFBuilder 2 Virtual Hosts
If wwwroot is not your project root, CFbuilder needs a mapping. Which the message tries to give you the place to add it, but with these sort of setups, and yours is identical to the way I use them by the sounds of it. I have never ever got this to work, even in CFB1. Virtual Hosts is not the answer, and really is a misleading, because it really is not even needed in the setup. But for some reason someone asked for it during the CFB1 alpha/beta and nobody understood that it was not needed. But I can be proved wrong if someone can clarify its exact purpose that can't be done elsewhere in CFB. Now the problem you describe is something that is difficult to work, and I have done it, but can't seem to get it to work in CFB2 where I had gotten it to work in CFB1. But the message is telling you exactly where you need to add the mapping. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Thu, Sep 15, 2011 at 6:08 AM, Carl Von Stetten wrote: > > I'm a complete CFBuilder n00b (just installed this morning for first time). > > I've been developing for years using Dreamweaver, so this is going to be a > huge change for me. > > OK, now to the problem. > > I develop on a 64-bit Windows 7 PC. I have IIS 7.5 running local versions > of the intranet applications I develop. I have a separate IIS web site for > each application, and ColdFusion 9.01 is connected to IIS and all the sites > work from a browser. My sites run from folders under C:\WebSites. > > In my hosts file, I have defined site names linked to 127.0.0.1 (local.app1 > and local.app2). This all works fine. > > Now I have installed CFBuilder. I configured my local server per the Adobe > help, or at least as far as I understand. My server shows up in the Servers > window. > > I'm confused as to how I configure a project. Do I point the project to > the actual website's code folder (ie: C:\WebSites\app1\wwwroot), or to the > default folder for the project (ie: C:\Users\myUserName\Adobe ColdFusion > Builder workspace/local.app1)? > > I tried putting a copy of the codebase in the project's default folder, but > I can't preview any pages in the Firefox or IE tabs. I get the message: > > "Selected file is not in the document root of the server. If the project > is not in the document root, create a linked folder to the document root > (selecting Project Properties > ColdFusion Project)." > > What am I doing wrong? How do others set up CFBuilder with locally hosted > IIS sites? > > > > ~| 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:347464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFBuilder 2 Virtual Hosts
I'm a complete CFBuilder n00b (just installed this morning for first time). I've been developing for years using Dreamweaver, so this is going to be a huge change for me. OK, now to the problem. I develop on a 64-bit Windows 7 PC. I have IIS 7.5 running local versions of the intranet applications I develop. I have a separate IIS web site for each application, and ColdFusion 9.01 is connected to IIS and all the sites work from a browser. My sites run from folders under C:\WebSites. In my hosts file, I have defined site names linked to 127.0.0.1 (local.app1 and local.app2). This all works fine. Now I have installed CFBuilder. I configured my local server per the Adobe help, or at least as far as I understand. My server shows up in the Servers window. I'm confused as to how I configure a project. Do I point the project to the actual website's code folder (ie: C:\WebSites\app1\wwwroot), or to the default folder for the project (ie: C:\Users\myUserName\Adobe ColdFusion Builder workspace/local.app1)? I tried putting a copy of the codebase in the project's default folder, but I can't preview any pages in the Firefox or IE tabs. I get the message: "Selected file is not in the document root of the server. If the project is not in the document root, create a linked folder to the document root (selecting Project Properties > ColdFusion Project)." What am I doing wrong? How do others set up CFBuilder with locally hosted IIS sites? ~| 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:347463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm