Thanks for the help, Dave.

What I'm trying to do is somehow be able to access different sites
locally.  Right now, I have to delete everything from wwwroot, then copy
over the files of the site I want to work on.  It can be a pain to work
on the different sites.  Also, Dreamweaver complains that the local site
root is the same for different sites.

Is there any way to have the different sites accessible under different
resources using mappings or virtual directories?  Or any other solution
to the problem? 

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 12:16 PM
To: CF-Talk
Subject: RE: multiple sites with cf 8 and iis

> I have modified my host file as follows: 
> ----------------------------------------------
> 
> 127.0.0.1       localhost
> www_redhotkitties_com localhost/www_redhotkitties_com
> 
> ----------------------------------------------
> 
> When I browse to http://www_redhotkitties_com/, I get 
> "Internet Explorer cannot display the webpage".
> 
> If I go to http://localhost/www_redhotkitties_com/, I get an 
> error that it cannot find an included template, which should 
> not be the case.
> 
> Do I have something configured wrong?

Yes. First, you should read the examples at the top of your HOSTS file,
if
you have any. You might also look for HOSTS.SAM in the same directory
for
guidance on how to write entries.

That said, you can only use HOSTS to do what a DNS server would do - map
IP
addresses to hostnames. If you want to have multiple names for a single
IP
address, however, you can't create aliases like you would in a DNS
server;
you simply map the address multiple times:

127.0.0.1       localhost
127.0.0.1       www.redhotkitties.com
127.0.0.1       www.somethingelse.com
.....

You can't create mappings to anything other than a hostname, either;
there's
nothing that would let you map an IP address to a URL as you're doing
with
"localhost/www_redhotkitties_com".

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286725
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to