On Sat, 22 Mar 2003, Gre7g Luterman wrote: > On Sat, 22 Mar 2003 22:41:04 -0500, Cory Wright > <[EMAIL PROTECTED]> wrote: > > > I have never used the WN web server, but a quick look over the docs shows > > that it provides a QUERY_STRING variable: > > > > http://hopf.math.nwu.edu/docs/appendixD.html#cgi.QUERY_STRING > > Whew! That's a relief. I had flashes of having to make drastic > changes for each possible web server and a host of tests to see which > one is running. > > Okay, here's my thinking... When there is no query, Apache passes a > blank string to the CGI. I test to see if it is blank. Perhaps WN > doesn't do that. Perhaps WN doesn't put any string in the environment > when it has no query. > > To help test my assumption, I'll need you to apply the following > patch, Jeff: > > RCS file: /cvsroot/tmda/tmda/contrib/cgi/tmda-cgi.py,v > retrieving revision 1.7 > diff -r1.7 tmda-cgi.py > 70,72c70,75 > < if os.environ["QUERY_STRING"]: > < import Release > < Release.Release(os.environ["QUERY_STRING"]) > --- > > try: > > if os.environ["QUERY_STRING"]: > > import Release > > Release.Release(os.environ["QUERY_STRING"]) > > except KeyError: > > pass > > This just tells it not to err out if it can't find a QUERY. It should > fix the immediate problem, but I don't have any warm fuzzies about the > URL confirmation code. > > Any chance you could apply this, test to see if it generally works, > and then try out the URL confirmation feature? That would be a big > help as I'm not ready to try installing WN on my server. > > Thanks, > Gre7g. > _____________________________________________ > tmda-users mailing list ([EMAIL PROTECTED]) > http://tmda.net/lists/listinfo/tmda-users >
A different error. This is from my log: 2003-03-23 07:02:09.988059500 authpriv.notice: Mar 23 07:02:09 sudo: jross : TTY=ttyp0 ; PWD=/usr/local/src/tmda/contrib/cgi ; USER=root ; COMMAND=./compile -t /var/www/htdocs/0/cgi-bin/tmda-cgi.cgi 2003-03-23 07:02:16.335160500 daemon.err: Mar 23 07:02:16 wn[2600]: tibook.openvistas.net - - "GET /cgi-bin/tmda-cgi.cgi HTTP/1.1" 500 0 <Read error: cgi_headers: No child processes> <Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/60 (like Gecko) Safari/60> <> <> <> If I revert to the original code, I'm back to the original error. I started off using Apache, but hated its logging, huge memory requirements, and complex (to say the least) configuration. WN is similar to DJB's publicfile, in that it is a fast web server with a small footprint, easy configuration, and written with security in mind. But it also does CGI, if you enable it to. WN can log through syslog, so for me that means it can log through multilog via socklog. It also works under daemontools. Greg, I'm e-mailing you the html Python displays when I run the pre-patch version. It is much more complete than the snippet I pulled from the source and posted in my first message. Thanks, Jeff -- Jeff Ross Open Vistas Networking, Inc. http://www.openvistas.net _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
