Groups | Blog | Home
all groups > iis security > may 2004 >

iis security : I can rename folder W3SVCn?



gbartoli NO[at]SPAM hotmail.com
5/28/2004 7:25:43 AM
Hi, I have 3 webserver with the same IIS configuration, on every
server there are 5 similar sites, but the folders,
%WinDir%\System32\LogFiles\w3svc1.. not are similar for every site on
every server, for example, the first site on first server put the log
on ..w3svc2, on other server the same site put the log on w3svc6, it's
possible reneme the folder? how to?
thanks!!
David Wang [Msft]
5/29/2004 10:37:56 PM
No, it is not possible to change the name of the website's log folder.

With IIS5, the web server increments the site ID starting from 1, such that
if you setup websites in particular order, they will have the same site ID.

With IIS6, the old incremental behavior is configurable via a registry
switch while the new default behavior depends on the "Friendly name" that
you chose for the website -- so if you created the website with the same
name on different IIS6 machines, they'll have the same hashed ID.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Hi, I have 3 webserver with the same IIS configuration, on every
server there are 5 similar sites, but the folders,
%WinDir%\System32\LogFiles\w3svc1.. not are similar for every site on
every server, for example, the first site on first server put the log
on ..w3svc2, on other server the same site put the log on w3svc6, it's
possible reneme the folder? how to?
thanks!!
giancarlo

Jerry Pisk
5/30/2004 12:38:32 AM
Why wouldn't it be possible? You can change the site id to be anything you
want, as long as you take care and do it right. I'm not going to post the
process here as I can't recall the exact and all steps from the top of my
head but if you know what you're doing I don't see a reason why you couldn't
edit the metabase to assign any id to your site you want. That said, the log
folder will still start with W3SVC and of course, any metabase editing is at
your own risk (if you have no idea what this is about just forget you've
seen this post).

Jerry

[quoted text, click to view]

David Wang [Msft]
5/30/2004 12:53:11 AM
I think we're answering the same question but in different ways.

I understood the user's intent as "can I change W3SVCn to something else for
synchronization purposes".

It is indeed not possible to make IIS change the name of the site log
directories, like W3SVC1 to "My Website", for synchronization purposes.

However, as we've both noted, it is possible to change the site ID, which
influences the dynamic part of the log directory name such that
synchronization is possible.

This is basically what we've both noted. I am only suggesting the UI-based
approaches by explaining the underlying mechanisms to achieve
synchronization. Your approach of copying one metabase node to another will
also work, but it'll require a bit more knowledge and risk.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Why wouldn't it be possible? You can change the site id to be anything you
want, as long as you take care and do it right. I'm not going to post the
process here as I can't recall the exact and all steps from the top of my
head but if you know what you're doing I don't see a reason why you couldn't
edit the metabase to assign any id to your site you want. That said, the log
folder will still start with W3SVC and of course, any metabase editing is at
your own risk (if you have no idea what this is about just forget you've
seen this post).

Jerry

[quoted text, click to view]


Jerry Pisk
5/30/2004 1:04:41 PM
Since you mentioned your GUI based approach - when I delete a site in ISM
will IIS reuse its id? If I create three web sites, then delete site number
2, will the next site I create be 2 or 4?

Jerry

[quoted text, click to view]

AddThis Social Bookmark Button