Why does a Web browser running under Linux show Python CGI scripts as plain text?!
Bjorn Pettersen
BPettersen at NAREX.com
Mon Feb 3 16:38:18 EST 2003
> From: Skip Montanaro [mailto:skip at pobox.com]
>
> ghostagain> One big problem: I have a Web site (which I
> ghostagain> coded using Windows) at http://usable-thought.com
> ghostagain> which has some CGI pages coded using
> ghostagain> Python, to produce dynamically rendered
> ghostagain> HTML
>
> You need to tell your web server (Apache, probably) that
> .py files are CGI scripts. Check your server
> configuration docs.
Although if you check the referenced pages, they show up fine in
IE6/WinXP. I don't have Linux so I can't test that, but I've never heard
of a server running/not running a cgi depending on the client type...?
(i.e. it has to be something on the server, but exactly what baffles me
:-)
-- bjorn
More information about the Python-list
mailing list