HP3000-L Archives

May 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Wilkinson, Mark" <[log in to unmask]>
Reply To:
Wilkinson, Mark
Date:
Tue, 2 May 2000 10:49:18 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (85 lines)
Hi Philippe,

Apache treats everything in the cgi-bin directory tree as an executable so
move your gif's into the html directory and use relative links. Assuming you
have subdirectory called images..

<img src="../images/n1.gif"></img>

Cheers.

Mark.

> -----Original Message-----
> From: Philippe.Dimonte [mailto:[log in to unmask]]
> Sent: 02 May 2000 10:27
> To: [log in to unmask]
> Subject: APACHE, CGI and .gif files
>
>
> Hello,
>
> Any idea on how to display .gif or .jpf files using Apache
> via a CGI program
> ?
>
> I wrote a (splash) program that send the following data.
> Everything works
> fine except for the <img> tag trying to display .gif or jpg files.
>
> Content-type: text/html
>
> <html>
> <head><title>Test CGI program</title></head>
>
> <IMG SRC="n2.gif">
> <IMG SRC="/cgi-bin/images/n8.gif">
>
> <TABLE ... >
>  .......
> <FORM METHOD='POST' ACTION='/cgi-bin/cgiget'>
>  ........
> <INPUT TYPE="submit" NAME="submit" VALUE="Send">
> ........
> </html>
>
> result :
>
> Internal Server Error
>
> The server encountered an internal error or misconfiguration
> and was unable
> to complete your request.
>
> contents of the /APACHE/PUB/logs/access_log file :
> daewoo.pdm.fr - - [02/May/2000:07:56:00 -0100] "GET /cgi-bin/n2.gif
> HTTP/1.0" 500 605
> daewoo.pdm.fr - - [02/May/2000:07:56:00 -0100] "GET
> /cgi-bin/images/n8.gif
> HTTP/1.0" 500 605
>
>
> Contents of the /APACHE/PUB/logs/error_log file :
> HTTPD.PUB.APACHE: [Tue May  2 07:56:00 2000] [error] (8)Exec
> format error:
> exec of /APACHE/PUB/cgi-bin/n2.gif failed
> HTTPD.PUB.APACHE: [Tue May  2 07:56:00 2000] [error] [client
> 123.0.0.103]
> Premature end of script headers: /APACHE/PUB/cgi-bin/n2.gif
> HTTPD.PUB.APACHE: [Tue May  2 07:56:00 2000] [error] (8)Exec
> format error:
> exec of /APACHE/PUB/cgi-bin/images/n8.gif failed
> HTTPD.PUB.APACHE: [Tue May  2 07:56:00 2000] [error] [client
> 123.0.0.103]
> Premature end of script headers: /APACHE/PUB/cgi-bin/images/n8.gif
>
>
> Thanks
>
> --
> Philippe Di Monte
>
> Mail to [log in to unmask]
> http://perso.wanadoo.fr/philippe.dimonte
>

ATOM RSS1 RSS2