views:

401

answers:

1

I'm used to setting up CF9 (Dev edition) on my Windows using Apache. I would like to try using IIS7 that comes with Win7 Pro. What are the steps to set it up so that I can have:

www.siteA.dev

www.siteB.dev

Both of these point to 127.0.0.1 via windows host file. I would like siteA.dev & siteB.dev to use 2 different CF instances.

I already installed CF9 dev edition with 2nd option. What should I do next?

Do I need to use IIS manager? Or the CF's Web Server Config tool is all I need?

Where to enter the data to IIS like vhost in Apache?

Thank you

+2  A: 

You need to install different instances, and then configure them to use your IIS website.

I explain here how to do it (it's on Cf8, but the process should be exactly the same).

After the instances are created, it's as simple as going to c:\jrun4\bin\wsconfig (or wherever you wsconfig is), and relating the existing ColdFusion instance with the IIS website.

The screen looks like this:

alt text

Having it done, you will be able to access your new instances via the addresses created via hosts file.

Hope this helps you Henry.

Cheers

UPDATE

Answering your question about the IIS here.

Simply create the IIS website. Then go to properties, and click advanced, and add a nerw hosts header as below:

alt text

On the host header value, simply add the name you want, i.e. mywebsite1.dev.

Now, go to hosts file, and add an entry with the same value pointing to 127.0.0.1

After that, simply follow the steps I already mentioned above for the WSCONFIG.

Marcos Placona
IIS Web Site: still points to "Default Web Site" on your screenshot. How do I set up a new website that responds only to siteA.dev and another one that responds only to siteB.dev? Thx.
Henry
Create the website as you would normally via IIS, after you have done that, go to the wsconfig, and "relate" your website with your application. On the hosts file, simply do:siteA.dev 127.0.0.1siteB.dev 127.0.0.1And that's all
Marcos Placona
Let's skip CF for a moment, I think I still don't know where to set up IIS so that WebsiteA only responds to siteA.dev. Thx...
Henry