CGI server by Python
aleax at aleax.it
Thu Sep 26 13:54:54 CEST 2002
Brian Lee wrote:
> I tested CGIHTTPServer.py in Python 2.2 and found that cgi files in
> sub directory does not run. Does anybody know about this?
> 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 -
Exactly as it says, /cgi-bin/a is not a plain file (it's a directory!)
and CGIHTTPServer.py is written to support plain files right under
cgi-bin only. See the parsing in function run_cgi around line 100
and following of that file in your Python library directory. If you
don't like the way it parses things, it ain't hard to modify...
More information about the Python-list