On Fri, Apr 09, 2004 at 04:17:00PM -0800, David Loutrel wrote:
> Error logs reveal:
> 
> Premature end of script headers: graybottomright.png, referer:
> http://66.33.21.181/cgi-bin/sqwebmail?noframes=1
> 
> For all images.
> 
> Still at a loss  and feeling bad that maillist archives show I'm the
> only stoopid person with this problem.

>From the above error, Apache is trying to process images as if they are
CGIs. If you had given the complete Apache access_log entry, then the
problem would have been immediately apparent.

However, since you did at least give the real IP address of the server, I
was able to find what you've done:

$ telnet 66.33.21.181 80
Trying 66.33.21.181...
Connected to 66.33.21.181.
Escape character is '^]'.
GET /cgi-bin/sqwebmail?noframes=1 HTTP/1.0
Host: 66.33.21.181

HTTP/1.1 200 OK
Date: Sat, 10 Apr 2004 08:53:54 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Content-Language: en-us
Cache-Control: no-store
Pragma: no-cache
Vary: Accept-Language
Connection: close
Content-Type: text/html; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
  <title>Sqwebmail Login.</title>
  <link rel="stylesheet" type="text/css" href="images/sqwebmail.css" />
                                               ^^^^^^

There's your problem. You need to set --enable-imageurl=/images
(right now it appears you have --enable-imageurl=images)

Because you're missing the initial slash, your web browser is interpreting
    images/graybottomright.png
as a relative URL, making it
    /cgi-bin/sqwebmail/images/graybottomright.png

Regards,

Brian.

Reply via email to