CFBuilder Server Setup Using Virtual Host
How to setup your CFBuilder project to use virtual host mappings. I am making the assumption that you have already setup your CFBuilder to talk to your local CF Server. Ok lets start.
First you need to make sure that you have the servers panel open in you workspace in CFBuilder, if you already have you local server setup you should see it in the server panel.

Now right click and select Edit Server. Now you should have the Modify ColdFusion Sever Setup Dialog window

Click next, and then click the Virtual Host settings button as you
can see I already have two virtaul host set up. So what you need
to fill out fields all of them are required. The name Field is the name
that you identify the virtual host with. The Host name is the actual
virtual host which should match your apache virtual host example
"coldfusion.dev". port which port is this going to run on I use 80 on all
of my local sites. Type is either http or https. Document Root is
the absolute path to your project. Once you have filled out all of the
fields click the apply button.

Once you have your virtual host setup go to the project or navigator panel select the project that you would like to associate the virtual host with. Right click and select properties.

Once the Properties window pops up select ColdFusion Server Settings and in the servers drop down find the virtual host that you just setup. Click apply and then Ok

Now select the project again and right again but this time select Set URL Prefix.
Now in the URL Prefix dialog box type the name of your virtual host again.

Now should be able to preview your CFM pages in CFBuilder.

Loading...