At 22:33 -0400 04/06/2011, Brandon McCaig wrote:
On Fri, Jun 3, 2011 at 1:14 PM, John Delacour wrote:
I made it clear that I am serving the page dynamically from cgi-bin. Here is
That part is irrelevant though because the image file is loaded by the
user agent AKA Web browser.
On the contrary, it seems it is not irrelevant at all.
fails to download. Instead
I get an internal server error (HTTP 500). That is your problem.
And likely to be the problem of most people attempting the same thing.
Maybe the server refuses to serve the image from
within the cgi-bin directory for security reasons?
Perhaps you should move the images into a separate document root
and give an absolute path e.g., http://bd8.com/images/test.jpg.
Well, since the whole matter of the request was the use of relative
paths, for reasons I've already explained, I am not likely to find
that recommendation very useful. Indeed I can move the file to [doc
root]/images/ and link to it as ../images/test.jpg, which I have
done, but the answer to my question, in case anyone else is
interested, seems to be that httpd.conf needs to be specially
configured to regard files in cgi-bin to be regarded as
non-executables, and since I do not have access to httpd.conf on
remote servers I cannot serve images from anywhere within cgi-bin.