1

I want to publish Python programs on the web, not execute them. When I put one in my web directory, CGIWrap jumps up and says:

"CGIWrap Error: Execution of this script not permitted"

What configuration can I give to Apache or CGIWrap so that it serves the content of .py files instead of getting into the above?

1 Answers1

1

From an answer on how TO execute a python script, I grabbed:

Options +ExecCGI
AddHandler cgi-script .py

This, and a quick trip over to the apache docs (to learn the reverse of AddHandler), leads me to suggest:

Options -ExecCGI
RemoveHandler .py

Let me know if this works for you!