PDA

View Full Version : CGIWrap ERRORS .> HElp Please


hollywoodnorth
10-7-03, 12:35 PM
I get this error when I try to update my AWstats >>

Script Error
The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run this script under CGIWrap debugging. Usually, either rename or link the script temporarily to a file which ends with .cgid extension, or add a AddHandler cgi-script-debug .cgi line to your .htaccess file.


So I edit my .htaccess file and still get the same crap >> Any ideas?


RewriteEngine On
RewriteCond %{HTTP_REFERER}!^http://www.XX.com [NC]
RewriteCond %{HTTP_REFERER}!^http://XX.com [NC]
RewriteCond %{HTTP_REFERER}!^http://www.XX.com [NC]
RewriteCond %{HTTP_REFERER}!^http://XX.com [NC]
RewriteRule [^/]+.(gif¦jpg)$ - [F]
AddType application/x-httpd-cgi .cgi .pl
Options -indexes

and got this >>

MichaelMcC
10-7-03, 06:19 PM
As a general rule, anytime you see that error.

Script Error
The script did not produce proper HTTP headers.

You can pretty much count on it being a syntax error.

If you edited your awstats.website.com.conf file and accidentally left out a quote mark you will get this error. Same with the equal sign, ect, ect...

example:

LogFile="/www/u/user/logs/access_log

should be:

LogFile="/www/u/user/logs/access_log"

See the forgotten quote at the end of the first line.

Not sure if this helps in your case but this is often the cause of the error your getting.

Michael