Today I tried to use althttpd.c as HTTP server for serving few fossil
scm. But I cannot execute CGI scripts.

The althttpd.c file I am speaking of is this one:
http://www.sqlite.org/docsrc/artifact/14c9965da19e83baeba2cd81b6459f3948f73794

So I downloaded it, compiled it, copied in /usr/local/bin/httpd .

My distribution uses xinetd so I made a configuration file to start httpd.

Here is the configuration file content:

service http
{
    socket_type = stream
    protocol = tcp
    port = 80
    wait = no
    user = root
    group = root
    server = /usr/bin/httpd
    server_args = -logfile logfile -root /home/paolo/tmp -user nobody
}

I set the root directory as /home/paolo/tmp just as test.

Inside the directory /home/paolo/tmp/default.website are two files:

a.txt a text file
b.sh a script with this content:

-----
#!/bin/sh
echo AAAAA
-----

Now once I start xinetd if I go to 127.0.0.1 with my browser
the server greets me saying there is no document in / that is fine.

Also 127.0.0.1/a.txt works fine, but if I try 127.0.0.1/b.sh the page
loads for some seconds and it shows an empty page.

What I am doing wrong? Why the CGI does not work?

I thought if could be a problem with the root jail but
even if I copy sh in the default.website directory and change
the interpreter to #!/sh nothing changes.

Help please.
Thanks
                                          
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to