How to serve .py as plain text
Coolkevmen shows how to locally Disable Python CGI scripts on Apache. Just make an .htaccess file and add the following:
RemoveHandler .py
Supposedly Apache will serve up the files as plain text. I haven’t tried it yet to see if it works.
May 3rd, 2006 at 11:07 am
It does work, I’ve been using it in a few directories on various sites I have. Quite helpful actually. :)
May 3rd, 2006 at 7:01 pm
Hi Andrew, good to know! I’ll have to do that on this server so I can post .py files a little easier.
August 20th, 2006 at 10:18 am
For your information, I’ve updated my blog structure, so here is the new link to my original post.
August 20th, 2006 at 10:46 pm
Thanks for the update. :)