[Tutor] Strange magic...
kirk Bailey
idiot1@netzero.net
Fri, 18 Jan 2002 03:17:11 -0500
Indeed, this is the case. A copy resides in the web directory, and I
simply added "../" to the img src declaration, and it displayed.
On another front, I now have a try/exception clause in the SMTP loop
so if a address is bad and raises an error, it can finish the email
delivery run. Much thanks to Mr Brian Penn for noticing the problem on
his list.
As soon as I am fully awake 2moro, I will copy over and configure the
upgraded programs to the other site (my email service); the
tinylist.org site is already updated.
Goodnight. ZZZZzzzz....
Danny Yoo wrote:
>
> On Fri, 18 Jan 2002, kirk Bailey wrote:
>
> > THIS MESSAGE CONTAINS LINES OF POLITICALLY INCORRECT LENGTH.
> > ok, here is the print statement:(Ware word wrap!)
> > print '<a href="http://www.python.org" target="_new"><img
> > src="./pythonpowered.gif" width="110" height="44" border="0"
> > alt="click to visit the python language website!"></a>'
> >
> >
> > and here is the error report:(DITTO!)
> > [Fri Jan 18 01:03:19 2002] [error] [client 63.208.204.126] file
> > permissions deny server execution:
> > /www/www.tinylist.org/cgi-bin/pythonpowered.gif
>
> Ok, now that's more like it! I think I have a reasonable hypothesis!
> Here's my guess: if a file is within the /cgi-bin/ directory, perhaps a
> file request for a file in the cgi-bin directory causes Apache to try
> executing the file.
>
> I don't think this has anything to do with Python, as the error message
> you're showing me,
>
> ###
> > [Fri Jan 18 01:12:00 2002] [error] (8)Exec format error: exec of
> > /www/www.tinylist.org/cgi-bin/pythonpowered.gif failed
> > [Fri Jan 18 01:12:00 2002] [error] [client 63.208.204.126] Premature
> > end of script headers: /www/www.tinylist.org/cgi-bin/pythonpowered.gif
> ###
>
> implies that Apache itself is trying to execute 'pythonpowered.gif'.
>
> According to the Apache documentation at:
>
> http://httpd.apache.org/docs/mod/mod_alias.html
>
> any requests to files in a "ScriptAliased" directory like "/cgi-bin"
> triggers CGI handling. Despite the fact that 'pythonpowered.gif' has the
> extension of 'gif', Apache has no way of knowing the context of this!
> It'll just execute it.
>
> (And in fact, one can take advantage of this strangeness by writing a
> Python script that has a "gif" extension, but actually generates dynamic
> gif images.)
>
> But I'd better stop guessing. *grin* Let's test this hypothesis out.
> How about moving your pythonpowered.gif file somewhere else like 'icons/',
> outside your cgi directory?
--
-Respectfully,
-Kirk D Bailey
Consulting Loose Cannon
end
www.howlermonkey.net highprimate@howlermonkey.net
www.sacredelectron.org idiot1@netzero.net
www.tinylist.org grumpy@tinylist.org
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97