publicfile derivatives

"Charles M. Gerungan" <[email protected]> Wed, 7 Jul 2004 01:51:34 +0200
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
I'm hoping that there are publicfile users that are using one of William
Baxter's derivative http servers as listed on www.publicfile.org.

I'm getting the following error message in my browser: File not found.

I've tried:
http://secure.procreatie.nl/
http://secure.procreatie.nl/test-cgi
http://secure.procreatie.nl/cgi-bin/test-cgi

I wish I knew how to run strace on this, so at least I might get a clue
on what file it's trying to open and where it thinks it's located.

Here's the run script for cgiuser-httpd:

# cat run
#!/bin/sh
MAXHTTP=101
ADDRESS=64.247.11.83
PORT=http

exec 2>&1
exec envdir /usr/local/etc/svc.d/www-secure.procreatie.nl/env \
    /usr/local/bin/envuidgid daemon \
    /usr/local/bin/softlimit -o20 -d100000 \
    /usr/local/bin/tcpserver -vDRHl0 -b50 -c ${MAXHTTP} ${ADDRESS} ${PORT} \
    /usr/local/bin/cgiuser-httpd cgi-test

# cat env/ROOT
/www/shttp    

 # ll -R /www/shttp
total 5
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:33 ./
drwxr-xr-x  8 root   wheel    - 512 Jul  2 21:57 ../
drwxr-xr-x  2 shttp  nofiles  - 512 Jul  3 07:34 bin/
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:32 host/
-rwxr-xr-x  1 shttp  nofiles  - 757 Jul  2 21:57 test-cgi*

/www/shttp/bin:
total 3
drwxr-xr-x  2 shttp  nofiles  - 512 Jul  3 07:34 ./
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:33 ../
-rwxr-xr-x  1 shttp  nofiles  - 757 Jul  3 07:34 test-cgi*

/www/shttp/host:
total 4
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:32 ./
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:33 ../
drwxr-xr-x  2 shttp  nofiles  - 512 Jul  3 01:20 0/
drwxr-xr-x  2 shttp  nofiles  - 512 Jul  3 01:16 secure:procreatie:nl/
lrwxr-xr-x  1 root   nofiles  -  20 Jul  7 01:49 secure:procreatie:nl -> secure.procreatie.nl/

/www/shttp/host/0:
total 3
drwxr-xr-x  2 shttp  nofiles  - 512 Jul  3 01:20 ./
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:32 ../
-rwxr-xr-x  1 shttp  nofiles  - 757 Jul  3 01:20 test-cgi*

/www/shttp/host/secure:procreatie:nl:
total 3
drwxr-xr-x  2 shttp  nofiles  - 512 Jul  3 01:16 ./
drwxr-xr-x  4 shttp  nofiles  - 512 Jul  3 07:32 ../
-rwxr-xr-x  1 shttp  nofiles  - 757 Jul  2 21:57 test-cgi*

The test-cgi is Apache's test-cgi. Just in case you don't have it, here
it is:

# cat /www/shttp/host/secure\:procreatie\:nl/test-cgi
#!/bin/sh

# disable filename globbing
set -f

echo Content-type: text/plain
echo

echo CGI/1.0 test script report:
echo

echo argc is $#. argv is "$*".
echo

echo SERVER_SOFTWARE = $SERVER_SOFTWARE
echo SERVER_NAME = $SERVER_NAME
echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
echo SERVER_PROTOCOL = $SERVER_PROTOCOL
echo SERVER_PORT = $SERVER_PORT
echo REQUEST_METHOD = $REQUEST_METHOD
echo HTTP_ACCEPT = "$HTTP_ACCEPT"
echo PATH_INFO = "$PATH_INFO"
echo PATH_TRANSLATED = "$PATH_TRANSLATED"
echo SCRIPT_NAME = "$SCRIPT_NAME"
echo QUERY_STRING = "$QUERY_STRING"
echo REMOTE_HOST = $REMOTE_HOST
echo REMOTE_ADDR = $REMOTE_ADDR
echo REMOTE_USER = $REMOTE_USER
echo AUTH_TYPE = $AUTH_TYPE
echo CONTENT_TYPE = $CONTENT_TYPE
echo CONTENT_LENGTH = $CONTENT_LENGTH

-- 
Regards, Charles.