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
new years eve 2018 Which you can put on whatsapp or Facebook or any other social networking websites. new years eve 2018 is a great chance to upgrade your Facebook and WhatsApp status.
# Posted By happy new year | 11/26/18 4:38 PM
Merry Christmas falls on 25th of December. This is the festival which is celebrated all around the world. People collect their quality time and use it to spend with their family and friends with whatsapp messages and wishes. Some people buy gift to give it to their loved ones to show them that they love them.
# Posted By Merry christmas | 11/26/18 4:39 PM
You have made an extraordinary showing on this article. It's exceptionally comprehensible and very savvy. You have even figured out how to make it justifiable and simple to peruse. You have some genuine composition ability. Much obliged to you.
# Posted By Showbox Apk Raw 2018 | 12/3/18 3:58 AM
If you must unpack the contents of your expansion files, do not delete the Download OBB data expansion files afterwards and do not save the unpacked data in the same. This way you could get the game and app data in your phone.
# Posted By angelica james | 12/4/18 10:21 AM
I as of late discovered numerous helpful data in your site particularly this website page. Among the heaps of remarks on your articles. Much obliged for sharing.
# Posted By Apk Editor Pro Cracked Version Latest | 12/8/18 7:07 AM
Aptoide App are various version of Aptoide are available in the market among these versions Aptoide Apk V9.0.0.3 is the best version.Aptoide App is the most independent app which allows one to setup and manage its own store it offers approximately 300,000 applications for free and has approx 14,000 independent stores.
# Posted By Aptoide for ios | 12/13/18 11:16 AM
Very nice
<a href="https://minimilitiaapk.net/mini-militia-unlimited-... Mini Militia Wall Hack</a>
# Posted By Mini Militia Game | 12/14/18 4:20 PM
awesome
# Posted By Lucky Patcher APK 2019 | 12/14/18 4:21 PM
Blackmart Alpha is an Android app store that provides users with latest APKs of trending, popular and useful apps. One is Blackmart Alpha App the premium version is Blackmart Alpha APK. In the premium version, you get access to Mod APKs and Cracked versions of your favorite apps that you can use without any subscriptions.
# Posted By Blackmart for PC | 12/18/18 1:44 AM
Nice Article thanks For share
# Posted By TutuApp | 12/19/18 6:55 AM
<a href="https://tutuhelperapk.co/">tutu helper</a>
# Posted By Sample | 12/22/18 7:41 AM
# Posted By Sample | 12/22/18 7:41 AM
Nice thanks
# Posted By TutuApp | 12/28/18 4:33 AM
Nice
# Posted By TutuApp | 12/28/18 4:34 AM
Playbox HD is an app that lets you watch your favorite TV shows and favorite videos, all use it to watch videos and TV shows online, most people mostly use PlayBox HD to watch your favorite TV shows and movies. We do. Between millions of people, praise of PlayBox HD is increasing and there is a great deal of praise. The best thing about Playbox HD is that it does not buffer when you are watching TV shows and movies.
# Posted By PlayBox HD | 2/20/19 3:08 PM

© 2019, 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