Multiple ColdFusion Sites on IIS Without Apache!

Occasionally, I stumble across claims about what a pain it is to setup multiple ColdFusion sites for a local development environment under IIS or even worse, that it just can't be done. This is flat out false. It's actually quite simple to get set up, and I'll show you two (2) different methods to do this.

The first option is to simply use a unique port with your localhost. So that for example if you navigate to http://127.0.0.1:81, you can view your site. You could then have another site under port 82 and so on. I've even included a short video tutorial to show you how to do this below:

Option 1

As you can see, it's quite easy! However, if you're developing more than a few web sites, it can be difficult to remember which site is on what port. So let's take a look at my preferred method.

Our second option is to modify your "hosts" file and then add a header in IIS for your site. Your header can be anything you like. However, I usually use the domain name along with ".loc" or ".local" to keep things unique. So, when I view the site in my browser, the URL would look like "www.mydomain.loc" or something like that. To see how to set this up, view the video tutorial below:

Option 2

And that's it! I certainly hope this has helped someone get going on IIS with ColdFusion.

Peace.

Comments
I think the issue was that IIS6 limited local installs to one active site. From what I understand the restriction was removed in IIS7.

And I prefer method 2 (hosts file mod) -- I usually use the domain name without the TLD -- so my local blog is http://cfsilence/blog.

PS - what did you use to create those screencasts. They look pretty good.
# Posted By todd sharp | 7/23/09 1:18 PM
@todd,

I remember having an issue with IIS on XP in general ... if I remember correctly, you had to have XP Pro to really do anything with it.

However, I really wanted to point out that you _can_ (and have been able to for quite some time now) setup and use IIS quite easily and reliably.

Thanks, and the screencasts were created with Jing: http://www.jingproject.com/
# Posted By Steve Withington | 7/23/09 3:11 PM
Thanks for this article.

I would like to advise you of my method, which could be considered a 3rd method, and I use it both in my personal 127 space and the real www on current 24 sites using a single IP / computer.

This works when u are in a shared hosting enviroment, and cant access IIS.

In the host file I have add:

127.0.0.1 vvvvvv.mydomain.co.za --- those are 'v''s not 'w' 6 of them.

This is useful for doing demo's and screen shots to simulate live sites, at home in my dev 127 enviroment.

Now the magic part is a bit of xml and cfm code, and has been on my live www site for over 3 years without fail.

I dont fiddle with the host file but rather with the dns records for my live services, and I plan them in a way I could use both.

<cfparam name="domain" default="mydomain.co.za">
<cfset domain = replace(cgi.SERVER_NAME, 'www.', '')>

<cffile action="read" variable="url_wddx" file="C:\www\mydomain\_\domain_listing.xml">
<cfwddx action="wddx2cfml" input="#url_wddx#" output="qry_wddx">

<cfquery dbtype="query" name="qry" maxrows="1">
SELECT *
FROM qry_wddx
WHERE COL_URL ='#domain#';
</cfquery>

<cfif qry.recordcount EQ 1>
<cflocation url="http://#qry.col_sub#.#qry.col_http#/#qry.col_dir#/...; addtoken="no">
<cfelse>
<cflocation url="http://127.0.0.1/"; addtoken="no">
</cfif>

Now u will need to use a simulated db (wddx packet), as the service provider's sql source may not always be online, I assume it is never online.

<?xml version="1.0" encoding="iso-8859-1"?>
<wddxPacket version="0.9">
<header />
<data>
<recordset rowCount="24" fieldNames="url,sub,http,dir">

<field name="col_url">
<string>domain.co.za</string>
...
<string>mydomains.co.za</string>
</field>

<field name="col_sub">
<string>www</string>
...
<string>www</string>
</field>

<field name="col_http">
<string>domain.co.za</string>
...
<string>mydomains.co.za</string>
</field>

<field name="col_dir">
<string>one</string>
....
<string>many</string>
</field>

</recordset>
</data>
</wddxPacket>

I hope this give you a better idea
# Posted By Jets | 7/24/09 10:57 AM
@Jets,

Very interesting approach. Thanks for sharing!
# Posted By Steve Withington | 7/24/09 1:04 PM
https://www.followers-like.com
Easy way to get much more followers at any time.
# Posted By Arthur | 9/22/17 4:57 AM
Thank you for your work on the blog! You're doing a good job!
https://19216801.mobi/
# Posted By 192.168.0.1 | 1/22/18 3:39 AM
iOS devices are the most trusted and branded operating system developed by apple.inc for apple devices. Games are rationale for all the devices but if you like to add mod to your games, then you need to be give different treatment to your iOS devices.iOS modded gamesis now possible to play with the help of Xmodgames for iOS. Playing games are stress reliving but limited lives in your game at the most exciting level, will make you feel otherwise. For nonstop enjoyment,xmod app download will help you out. Download xmod on your iPhone or iPad and play your favorite game without any limitations of lives or coins or gems. Check out the xmodgames apk download process below.
http://xmodgamesiosfreedownload.zohosites.com/
# Posted By StuartBDavis | 2/27/18 5:42 AM
Download the GameCIH APK file from the direct link given here tap on the gamecih apk file to begin.
https://tutuappapkdownload.com/gamecih/
# Posted By Dennis Smith | 4/20/18 2:15 AM
nice post
# Posted By adith | 5/30/18 8:51 AM
nice post
# Posted By habeeb | 6/1/18 7:26 AM
nice blog thanx for sharing
# Posted By kemp | 6/3/18 10:29 PM
get more info about carmax
# Posted By georges | 6/4/18 10:20 PM
# Posted By friendship day | 7/19/18 2:05 AM
I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing
# Posted By 800 number for live person | 7/29/18 8:35 PM
Thanks for sharing....
# Posted By Modapk Town | 9/17/18 4:54 PM
Apk Digit
# Posted By Apk Digit | 9/27/18 5:04 PM
Download Vidmate
# Posted By Download Vidmate | 9/27/18 5:04 PM
Showbox Apk Download
# Posted By Showbox Apk Download | 9/27/18 5:05 PM
Lucky Patcher Apk
# Posted By Lucky Patcher Apk | 9/27/18 5:05 PM
Spotify Premium Apk
# Posted By Spotify Premium Apk | 9/27/18 5:05 PM
Gaana Pro Apk
# Posted By Gaana Pro Apk | 9/27/18 5:06 PM
Thanks for sharing.....
SuperSu App
Download SuperSu
SuperSU Zip
SuperSu Pro Apk, SuperSu Pro
# Posted By Super SU | 10/3/18 4:13 PM
Good Post
# Posted By All APK | 10/3/18 6:06 PM
If you want to download videos and audio then Snaptube is the best option for you. If you are using Snaptube APK then you have to download Snaptube App APK file in you mobile. It gives you a variety to download videos in different qualities like in Mp4, 3gp, HD. For audio you can download it in MP3, MP4. Snaptube can be downloaded for IOS or Snaptube PC or Snaptube para pc or Decargar Snaptube.

# Posted By Snaptube Download | 10/3/18 6:07 PM
PlayBox HD is an application which is used to watch the videos and TV shows online a lot of peoples used PlayBox HD to watch their Favourite TV shows and movies. It gained huge amount of fan following among millions of people. The best part of the PlayBox HD is that it doesn’t buffer while you are watching TV shows and movies. All you need to do is just install the PlayBox HD Apk and other things are set to watch the Favourite movies and TV shows. The fantastic feature of PlayBox HD is that it is available at free of cost you don’t to pay any amount to watch the movies and other videos online. Even PlayBox HD provides you the facility to download the videos once and then you can watch them offline without any internet connection.

# Posted By Playbox HD Download | 10/3/18 6:08 PM
There are various Cartoon HD app for android , iphone , windows PC user’s. This app will give you its services at free of cost without pay any penny. It is suitable for android and ios platform both it is compatible with so many operating system so that you can use it and download it without any difficulty.

# Posted By Cartoon HD Download | 10/3/18 6:08 PM
ACMarket is one of the best alternative of Google play store, AcMarket APK is far different from Google Play Store, some games and apps are paid in the Google Playstore, due to this, quite a user can not buy them, but AcMarket is an app where you can download all paid games and applications in free, You can use them. The app contains several thousand of free Android apps and games for your device and by installing this free Android apps market

# Posted By AcMarket Download | 10/3/18 6:09 PM
Nice post Sir...
# Posted By Tutuapp Doenload | 10/3/18 6:10 PM
Tutuapp APK Download Official App on your Android,PC, iOS devices, iPad, iPhone {Latest Version}
TutuApp APK is o
# Posted By Tutuapp Download | 10/3/18 6:10 PM
Lucky Patcher APK is an app that gives you actual control over permissions on apps installed on your Android. You can remove excessive ads, change permissions, create backups of other apps, and more. That said, you need a root device to enjoy these features. When you open Lucky Patcher, you will see a detailed list of all the apps installed on the device. To see the available options, you just have to tap one of them: View information about the app, uninstall it, delete additional data, and access other special tools.

# Posted By Lucky Patcher Download | 10/3/18 6:11 PM
If you want to download videos and audio then Snaptube is the best option for you. If you are using Snaptube APK then you have to download Snaptube App APK file in you mobile. It gives you a variety to download videos in different qualities like in Mp4, 3gp, HD. For audio you can download it in MP3, MP4. Snaptube can be downloaded for IOS or Snaptube PC or Snaptube para pc or Decargar Snaptube.

# Posted By Snaptube Download | 10/3/18 6:12 PM
If you want to download videos and audio then Snaptube is the best option for you. If you are using Snaptube APK then you have to download Snaptube App APK file in you mobile. It gives you a variety to download videos in different qualities like in Mp4, 3gp, HD. For audio you can download it in MP3, MP4. Snaptube can be downloaded for IOS or Snaptube PC or Snaptube para pc or Decargar Snaptube.

# Posted By Snaptube Download | 10/3/18 6:13 PM
There are various Cartoon HD app for android , iphone , windows PC user’s. This app will give you its services at free of cost without pay any penny. It is suitable for android and ios platform both it is compatible with so many operating system so that you can use it and download it without any difficulty.

# Posted By Cartoon HD Download | 10/3/18 6:14 PM
PlayBox HD is an application which is used to watch the videos and TV shows online a lot of peoples used PlayBox HD to watch their Favourite TV shows and movies. It gained huge amount of fan following among millions of people. The best part of the PlayBox HD is that it doesn’t buffer while you are watching TV shows and movies. All you need to do is just install the PlayBox HD Apk and other things are set to watch the Favourite movies and TV shows. The fantastic feature of PlayBox HD is that it is available at free of cost you don’t to pay any amount to watch the movies and other videos online. Even PlayBox HD provides you the facility to download the videos once and then you can watch them offline without any internet connection.

# Posted By Playbox HD Download | 10/3/18 6:16 PM


Blackmart APK is not available on Google play store . But APK of Blackmart App is procureable across the internet . For the installing of this substitute android market
# Posted By Blackmart Alpha App | 10/9/18 8:28 AM
Blackmart APK is not available on Google play store . But APK of Blackmart App is procureable across the internet . For the installing of this substitute android market
# Posted By Blackmart Alpha App | 10/9/18 8:29 AM


Blackmart APK is not available on Google play store . But APK of Blackmart App is procureable across the internet . For the installing of this substitute android market
# Posted By Blackmart Alpha App | 10/9/18 8:30 AM

© 2018, Stephen J. Withington, Jr.  |  BlogCFC was created by Raymond Camden – Version 5.9.004

Creative Commons License  |  This work is licensed under a Creative Commons Attribution 3.0 Unported License.  |  Hosted by Hostek.com