HTTP Error 502.2 - Bad Gateway IIS 7

William
2011-03-10
2012-10-11
  • William
    William
    2011-03-10

    Hi

    I've installed AWStats V7, and have set up the log files and Perl. Perl is
    working (tested with hello world), and AW stats is processing the log files,
    but I can't view the AW stats online, as I get the following error:

    HTTP Error 502.2 - Bad Gateway
    The specified CGI application misbehaved by not returning a complete set of
    HTTP headers. The headers it did return are "".

    More error details:
    Module CgiModule
    Notification ExecuteRequestHandler
    Handler ActivePerl
    Error Code 0x00000000
    Requested URL http://www.officespaceinlondon.net:80/stats/cgi-bin/awstats.pl?
    config=officespaceinlondon.net

    Physical Path C:\inetpub\wwwroot\AWStats\cgi-bin\awstats.pl
    Logon Method Anonymous
    Logon User Anonymous

    I thought that maybe it was the handler mappings for .pl files in IIS, but
    this is set up in the handler mappings as follows:
    Request path: *.pl
    Executable: C:\Perl\bin\perl.exe

    Restrictions are set to:
    Invoke handler only if request is mapped to: File
    Verbs: GET, HEAD, POST
    Access: script

    Can anyone help me with this error? Thanks in advance for your help.

    William

     
  • Uraststuser
    Uraststuser
    2011-08-06

    I sure wish someone could help with this problem. I have the exact same
    problem and have to awstats_buildstaticpages.pl to view my logs

     
  • Uraststuser
    Uraststuser
    2012-01-11

    thank you steveschofield.