How do you go about writing the header information, do you put the url
there, or do you put the folder. That's the only thing I can't figure out.
It doesn't say specifically in the documentation on what to do.

Robert Everland III
Web Developer
Dixon Ticonderoga


-----Original Message-----
From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 21, 2000 12:25 PM
To: [EMAIL PROTECTED]
Subject: Re: OT: IIS sharing on IP address


As I recently learned from someone else in here, you *could* do it like
this.

In the default document of the root web at the IP address, put something
like this:

<CFSWITCH EXPRESSION="#lcase(CGI.SERVER_NAME)#">
    <CFCASE VALUE="www.site1.com, site1.com">
        <CFLOCATION URL="/folder1/">
    </CFCASE>
    <CFCASE VALUE="www.site2.net, site2.net">
        <CFLOCATION url="/folder2/bob.cfm>
    </CFCASE>
    <CFDEFAULTCASE>
        <CFLOCATION URL="/index.cfm">
    </CFDEFAULTCASE>
</CFSWITCH>

Under these conditions, if someone typed www.site1.com, they would get
redirected to www.site1.com/folder1/.  www.site2.net would be
www.site2.net/site2/bob.cfm.  Anything else and they get sent to index.cfm
in the root folder.  It might not be 100% clean and pretty, but it works
well, especially for 'simpler sites'.  Besides, most people won't know the
difference anyway.

A couple of working examples would be www.campcheokee.org, or
www.littlegoldangels.com  [don't laugh, I didn't make these, I just set up
the servers ;) ]

Todd Ashworth
Web Application Developer
(803) 327-0137 [111]

| I have been looking through the help though I am not sure exactly
| what to search on. What i want to do is have as many domains as I want
| sharing on ip address, though i can't find out how to go about doing this.
| Anyone who knows how to do it would be greatly appreciated.
|
| Bob Everland


----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to