Tech note FS1439
How can I perform analysis for a web site hosted on its own IP address on IIS 3?
This feature is useful for when your web server hosts several web sites. IIS 3 puts all hits into one big log file rather than generating separate log files for each web site. (If you are using IIS 4 you should generate one log file for each separate web site.) If each web site has its own IP address (ie, the server is multi-homed) you can generate statistics for any given IP address by following the directions below.
Note: If your customers' web sites are in subdirectories such as http://www.domain.com/~cust1/ and http://www.domain.com/~cust2/ then you should refer to tech note FS1423 instead.
To analyze only hits to a given IP address, you need to create a unique FlashStats user account definition for each web site that you want to analyze. Each user account needs its own name and password, of course. You also need to add the AuthRealm parameter to each user account definition. The AuthRealm parameter indicates the IP address of the desired web site; FlashStats will only analyze requests made to that IP address.
This can be best illustrated with an example. Let's assume that the bottom of your FlashStats.ini configuration file currently only defines one user account:
Let's also assume that your server hosts the following two sites:
- http://www.abc.com, on port 184.108.40.206
- http://www.xyz.com, on port 220.127.116.11
What you need to do is to edit your FlashStats.ini configuration file (located in the /scripts directory) so that it includes the following two user accounts:
Now, each of your customers can run reports for just their own web sites. When they display the FlashStats Report Request Form, they fill in their own user account name (ie, "abc" or "xyz") and password. Any reports run for either of these user accounts will only show requests made to the corresponding IP address.
(When editing the FlashStats.ini file, be sure to keep each user account definition on one long line; don't wrap the definition onto several lines.)