apache: problem viewing PNGs
Timothy Murphy
tim at birdsnest.maths.tcd.ie
Wed Sep 7 12:05:34 UTC 2005
<posted & mailed>
Simon Andrews wrote:
>> I'm running a program which writes PNG files in /var/www/cgi-bin/
>> and then writes an html file (also in cgi-bin)
>
> Well that's the problem. The cgi-bin directory is for executable files,
> not for static content. Frankly I'm amazed your html files work as the
> default apache configuration certainly doesn't permit this. It will try
> to execute everything under /cgi-bin/.
>
> Save your files somewhere under your normal document root and everything
> will work. Apart from anything else you are opening yourself to nasty
> security holes by making cgi-bin writable by whichever user your
> webserver is running as.
Thanks very much.
I'll follow your advice, which sounds very sensible to me.
I was actually using a program, tcp_services.rcgi ,
which I took from the net;
I'll modify it in accordance with your suggestions.
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
More information about the fedora-list
mailing list