You are not logged in.

#1 2011-08-03 15:37:16

Camus
Member
Registered: 2011-07-03
Posts: 71

Apache and mod_wsgi - running .py files

I did this once on Ubuntu, but I can't remember what exactly did I wrote in httpd.conf to make it work. Any help?

Offline

#2 2011-08-03 16:04:40

Camus
Member
Registered: 2011-07-03
Posts: 71

Re: Apache and mod_wsgi - running .py files

This worked:

AddHandler cgi-script .py

But I'm not sure if it's the correct way. I hope somebody can confirm.

Offline

#3 2011-08-04 16:43:58

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

Re: Apache and mod_wsgi - running .py files

You enabled CGI for URLs/files ending in .py by adding the cgi-script handler. CGI is not WSGI. They both involve the mechanics of how HTTP requests are sent to the underlying script but they use different techniques. See http://code.google.com/p/modwsgi/wiki/C … Guidelines for help configuring Apache. Read the wiki there.

Offline

Board footer

Powered by FluxBB