----- Original Message ----- 
From: "Brian Candler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'sqwebmail'" <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 4:37 PM
Subject: Re: [sqwebmail] Templates not picking up changes


> On Sun, Sep 28, 2003 at 04:01:15PM +0100, [EMAIL PROTECTED] wrote:
> > 1.) Sqwebmail IS reading templates from the correct directory, removing
a
> > template and creating the "env" cgi script proves this
> > 2.) The image dir for sqwebmail IS being read and appears to be picking
up
> > changes, eg: I change the logo.gif image - and it is picked up, I change
the
> > css and I can change the colours.
> > 3.)changing the html templates actual html seems to make no changes. I
have
> > changed the contents of the <title> tag, and changed the <img>
attributes to
> > change the size of logo.gif. None of the changes to the HTML templates
> > appear to be working.
> >
> > I am unaware of any limitations of changing the html templates, the
> > permissions of the files look fine, I am not caching the pages on the
> > webserver, and the sqwebmail application appears to be working fine ???
> >
> > any further comment / advice.
>
> $ telnet your.webserver.com 80
> GET /cgi-bin/sqwebmail?noframes=1 HTTP/1.0
> Host: your.webserver.com
> <blank line>
>
> will show you *exactly* what gets returned by the webserver for the login
> page. If you make a change in the template, you'll see the change in the
> returned HTML. If you don't see a change, then you have something weird
> about your system and I can't really make any guesses as to what you've
> done. Strange proxy caches or something, who knows.
>
> Do the above test *on* the webserver itself. Use
> telnet 127.0.0.1 80
>
> Brian.
>

Excellent good advice Brian

The problem with this test is that I am running virtual domains
so if I telnet to 127.0.0.1 on 80
and do a get blah blah the blah blah is not in the virtual host htdocs root,
it will be in the webserver root which hopfully explains why I get

Connected to 127.0.0.1.
Escape character is '^]'.
GET /cgi-bin/sqwebmail?noframes=1 HTTP/1.0 alesi.projecthugo.co.uk
HTTP/1.1 400 Bad Request
Date: Sun, 28 Sep 2003 16:51:22 GMT
Server: Apache/1.3.28 (Unix) PHP/4.3.2
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
The request line contained invalid characters following the protocol
string.<P>
<P>
<HR>
<ADDRESS>Apache/1.3.28 Server at www.mdlan.co.uk Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

when i try it.

Thanks,

Matt



Reply via email to