> 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.
To the best of my knowledge, you can't change the exact directory in which
log files will be created. You can specify where that directory will be
placed, but that's it. Fortunately, though, you can programmatically
determine the name of the directory based on the site number. Each IIS
virtual server is issued a unique number, which is used to name the
directory.
> 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?
The unique identifier is the site number, as mentioned above. If you're
using IIS 6, you can easily create a new site from a definition file. If
you're using IIS 5, you can still script the creation of sites.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

