开发者

How to setup CF9 with IIS7 (multiple instance, virtual hosting by hostname)

开发者 https://www.devze.com 2022-12-24 03:50 出处:网络
I\'m used to setting up CF9 (Dev edition) on my Windows machine, using Apache.I would like to try using IIS7 since that comes with Win7 Pro.What are the steps to set it up so that I can have:

I'm used to setting up CF9 (Dev edition) on my Windows machine, using Apache. I would like to try using IIS7 since 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 the windows host file. I would like siteA.dev and siteB.dev to use 2 different CF instances. I've already installed CF9 dev edition with the 2nd option. What should I do next?

  • Do I need to use the IIS manager, or is the CF's Web Server Config tool all I need?
  • Where do I enter data into IIS, l开发者_StackOverflow社区ike vhost in Apache?


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:

How to setup CF9 with IIS7 (multiple instance, virtual hosting by hostname)


(source: adobe.com)

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 http://img401.imageshack.us/img401/8720/iis.jpg

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消