Hit Counter Only Works on One Virtual Server

ID: Q222110


The information in this article applies to:
  • Microsoft FrontPage 98 for Windows
  • Microsoft FrontPage 97 for Windows


SYMPTOMS

Hit counters only work on one virtual server. Hit Counters on other servers on the same computer remain at 1.


CAUSE

This is caused by nesting virtual servers. Nested servers occur when the directory path of a virtual server is inside the directory path of another virtual server. For example:

Default Web Site: C:\Inetpub\wwwroot
Virtual Server 1: C:\Inetpub\wwwroot\server1
Virtual Server 2: C:\Inetpub\wwwroot\server2
The hit counters in the nested servers are referencing the counter file in (server)/_private when reading. When writing to the counter file, they reference /_private in the top level virtual server.

In the above example, a counter in Virtual Server 1 displays the information in the counter file in wwwroot/server1/_private when browsing to the Web. When recording the hit to the site, the counter file being written to is the one for the Default Web Site in wwwroot/_private/server1.


RESOLUTION

  1. Uninstall the extensions from the nested virtual servers (for example server1 and server.


  2. Move the virtual servers to a directory at the same level as the server that does work. For example:
    Default Web Site: C:\Inetpub\wwwroot
    Virtual Server 1: C:\Inetpub\server1
    Virtual Server 2: C:\Inetpub\server2
    For information on how to change the directory path for a virtual server, consult the documentation for your server.


  3. After you change the directory path of a server, type the following from a command prompt:

    For IIS 4.0
    net stop iisadmin /y
    net start w3svc
    Note: You will also need to restart any other services that IIS is running.

    For IIS 3.0

    net stop w3svc
    net start w3svc


  4. Reinstall the FrontPage Server Extensions to the formerly nested servers.


  5. Open each root Web and subweb. On the Tools menu, click Recalculate Hyperlinks.



MORE INFORMATION

For additional information, please see the following article(s) in the Microsoft Knowledge Base:

Q183777 FP: Server Extensions Do Not Support Nested Virtual Roots

Additional query words:

Keywords :
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: March 18, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.