Wednesday, February 21, 2007
I'm using SmarterStats for my blog statistics and have been annoyed by two things for a while. I get no statistics for bandwidth and referers. I looked around on the web and found that these things are actually not logged in IIS by default. I found this article describing how to enable it in IIS 6. Now I had to find out how to do the same thing in IIS 7. As I and others have mentioned earlier, IIS 7 in Vista don't have much UI yet, so most of the work is done in config files. I checked out the schema and came up with this:

<sites>
  <
site name="Default Web Site" id="1">
   
<
application path="/" applicationPool="ASP.NET 1.1">
     
<
virtualDirectory path="/" physicalPath="" />
   
</
application>
    <
bindings>
      <
binding protocol="http" bindingInformation="*:80:" />
   
</
bindings>
    <
logFile logExtFileFlags="Date, Time, ClientIP, UserName, ServerIP, Method, UriStem, UriQuery, HttpStatus, Win32Status, ServerPort, UserAgent, HttpSubStatus, BytesSent, BytesRecv, Referer" />

  </site>
</
sites>

After these changes I went into SmarterStats and found values for both bandwidth and referers. Fantastic!
IIS | Vista
Thursday, February 22, 2007 10:06:15 AM (W. Europe Standard Time, UTC+01:00)
I find it really strange that Microsoft hasn't employed 10 "monkeys" to produce the GUI required to do all the settings in IIS. They should be able to do this in no time at all (relative to how long we are wainting for stuff from that company).

You might argue that they don't want to do this until the configuration schema has been stabilized, but come on(!), the 10 monkeys can do it again and again and again. GUI to change config settings is probably the easiest programming task you have. I know the development process and life cycle at M$ is kindo of heavy and bloated, but I really don't get this!
All comments require the approval of the site owner before being displayed.
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
 
Aggregate Me!
Feed your aggregator (RSS 2.0)  Rss
  Comments
On this page....
Locations of visitors to this page