CGI server by Python

Brian Lee senux at senux.com
Thu Sep 26 06:28:23 EDT 2002


Hi,

I tested CGIHTTPServer.py in Python 2.2 and found that cgi files in 
sub directory does not run. Does anybody know about this?

/cgi-bin/test.cgi works.
/cgi-bin/a/test.cgi does NOT works.

$ python CGIHTTPServer.py
Serving HTTP on 0.0.0.0 port 9002 ...
avante.xxx.co.kr - - [26/Sep/2002 19:20:24] code 403, message CGI script is not a plain file ('/cgi-bin/a')
avante.xxx.co.kr - - [26/Sep/2002 19:20:24] "GET /cgi-bin/a/test.cgi HTTP/1.1" 403 -
avante.xxx.co.kr - - [26/Sep/2002 19:20:33] "GET /cgi-bin/test.cgi HTTP/1.1" 200 -

/cgi-bin/test.cgi and /cgi-bin/a/test.cgi is same file.

-- 
Brian Lee <senux at senux.com>




More information about the Python-list mailing list