IIS 6 + AWStats... Blank output?

J S
2010-02-26
2012-10-11
  • J S
    J S
    2010-02-26

    I've installed Awstats on my IIS server, ran through the first log file just
    fine, but now going to awstats.pl?config=mydomain.co.uk I get blank output
    with the following in the source :

    Content-type: text/html; charset=utf-8
    Cache-Control: public
    Last-Modified: Fri Feb 26 15:34:32 2010
    Expires: Fri Feb 26 15:34:32 2010
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
    <html lang="en">
    <head>
    <meta name="generator" content="AWStats 6.95 (build 1.943) from config file awstats.www.mydomain.co.uk.conf ([url]http://awstats.sourceforge.net)[/url]">
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="description" content="Awstats - Advanced Web Statistics for www.mydomain.co.uk (2010-02) - main">
    <title>Statistics for www.mydomain.co.uk (2010-02) - main</title>
    </head>
    
    <frameset cols="240,*">
    <frame name="mainleft" src="awstats.pl?config=www.mydomain.co.uk&amp;framename=mainleft" noresize="noresize" frameborder="0" />
    <frame name="mainright" src="awstats.pl?config=www.mydomain.co.uk&amp;framename=mainright" noresize="noresize" scrolling="yes" frameborder="0" />
    <noframes><body>Your browser does not support frames.<br />
    You must set AWStats UseFramesWhenCGI parameter to 0
    to see your reports.<br />
    </body></noframes>
    </frameset>
    
    </html>
    
     
  • Scott
    Scott
    2010-04-30

    I have the same problem. I came here looking for a better fix but haven't
    really found much. The solution I am using now is to modify the awstats.pl
    file. Look for a sub named http_head (was about line 816 in my file). If you
    have things as default (i.e. not trying to send xhtml or xml) then the Else
    part is used. Change

    else { print "Content-type: text/html; charset=$newpagecode\n"; }
    

    to the following

    else { print "HTTP/1.0 200 OK Content-type: text/html"}
    

    I actually commented out the original line and made a note in the PL file in
    case I need to go and find my customization. It fixed the problem for me. I
    hope it helps you.

    Scott

     
  • kludgemaker
    kludgemaker
    2012-08-20

    I created a sourceforge account just to say Thank You.
    I have been hammering on this issue for 2 days, and you have solved it.

    Seems like a lot to go through ... hope they find something else to fix it,
    ... but until then...

    Thank You!!