![](https://seccdn.libravatar.org/avatar/cabdbf4d350ab6a15265803acab1634d.jpg?s=120&d=mm&r=g)
On 06/28/2014 03:48 AM, jdd wrote:
Le 28/06/2014 09:09, jdd a écrit :
and if somebody can help making the script run right from index.cgi, I take it :-)
right now, the Apache2 options are:
<Directory "/srv/www/essai/"> Options +ExecCGI AddHandler cgi-script .cgi Order allow,deny Allow from all </Directory>
and
http://dodin.org/essai/th/index.cgi
ask me to download the file in place of executing it.
the content of the file is the OP link:
#!/bin/sh
echo “Content-type: text/html” echo “”
for name in * do echo “<img src=$name><br />$name<br />” "done
exit 0
I'm not sure the syntax is correct, but it shouldn't prevent execution at all?
Ah, good, you're trying the example, the simple script which dynamically generates html as a stream to the client, in the web page I've referenced in this thread, what, a half dozen times now :-) You should read the follow page I also referenced so that the "*" gets replaces by a pattern of only graphic files. You also have a spurious '"' in the above. I hope its not in the actual .cgi :-) But all in all the result I'm getting is the same. Its not executing. I said that, didn't I? As I said in Message-ID: <53ADD854.4080408@antonaylward.com> Date: Fri, 27 Jun 2014 16:47:16 -0400 <quote> The article I referred to describes a CGI script that, with a bit of modification described in a later article http://www.askdavetaylor.com/create_apache_image_browser_script/ and http://www.linuxjournal.com/article/9622 does just what I want. But I can't get it to work. The author says <quote> Turns out you can do just that with a simple shell script named as index.cgi in the images directory (well, you might have to slightly tweak your httpd.conf configuration, but fundamentally it should be easy). </quote> Well I have that script by that name in my photographs directory and tweaked the httpd.conf to include user_mod and added the "Options ExecCGI" and ... It doesn't work. </quote> There's a lot the author doesn't explain about the Apache setup "tweaks". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org