2)


This is what I do to create Sub-Domains for current Sites but with a little
modification it will work for new sites.


You need to use the mkw3site.vbs script that comes with IIS.

AdminScripts is the Directory mkw3site script is located in.
RootPath is the Root directory where I want to create the website.
sandbox is the 3rd level Domain in your case it would be "www".
VDomain is second level domain and the Top Level Domain "kchost.net"

<cfset CMDCommand='
C:#CHR(13)#
cd #AdminScripts##CHR(13)#
mkw3site -r #RootPath#\Sandbox\#Sandbox#.#VDomain#/Public_HTML -t
#VDomain#.#Sandbox# -h #Sandbox#.#VDomain##CHR(13)#
mkdir #RootPath#\Sandbox\#Sandbox#.#VDomain##CHR(13)#
mkdir #RootPath#\Sandbox\#Sandbox#.#VDomain#\Public_HTML#CHR(13)#
mkdir #RootPath#\Sandbox\#Sandbox#.#VDomain#\Database#CHR(13)#
'>


            
<cffile nameconflict="OVERWRITE" action=""> File="#RootPath#\Sandbox\sandbox.txt" output="#Trim(CMDCommand)#">
<cffile action="" source="#RootPath#\Sandbox\sandbox.txt"
destination="#RootPath#\Sandbox\sandbox.cmd">


<!--
<CFexecute NAME="#RootPath#\Sandbox\sandbox.cmd" ARGUMENTS="" TIMEOUT="60"/>
-->

1) I am not sure about this one but if you figure it out let me know. I
automate our clients Stats and Archive the logfiles each Sunday but I have
to go in and modify IIS manually.


Rick Eidson
Partner & CTO
ArcRiver Technology, LLC
ASP, PHP, PERL, Cold Fusion Hosting Kansas City
http://www.arcriver.com/ <http://www.arcriver.com/>


Kansas City Musicians
http://www.1sourceentertainment.com/ <http://www.1sourceentertainment.com/>


-----Original Message-----
From: Burns, John D [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:13 PM
To: CF-Talk
Subject: SOT: IIS Automation questions


Ok, this is more specific than the average "I want to automate IIS stuff
in CF questions".  I have 2 specific questions that I'd like to see if I
can get a little bit of help with.

1) In IIS, I'm choosing custom paths for each sites logs to be stored
in.  My question is if there's any way to have IIS store the logs
directly in the directory I choose as opposed to /W3SVC######.  I want
to automate some other stuff based on this location and that is screwing
me up.  Any suggestions would be great.

2) Along the same lines (and this may partially solve my first problem),
I'm trying to create a new site from a file.  I was thinking I could
create a site with the generic setup that I use across all of my sites
and use CF to automatically edit the specifics of the site (host
headers, path for logs, home directory, etc), but as far as the unique
identifier for the site goes, is that just up to me to keep that unique
or is the a larger purpose for that which needs to be handled by IIS?

I know the second question is more along the lines of a typical "how do
I automate IIS" but any specific answers toward my questions would be
helpful. (Even if it's just to expand my knowledge) Thanks!

John
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to