I want to run a Python CGI script on my web server (Apache 2.2). When I try to run the test.py file I get the following error:
403 ForbiddenForbidden
You don't have permission to access /test.py
on this server.
In the error log:
[client 127.0.0.1] Options ExecCGI is off in this directory: C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/test.py
So what could be the problem?
解决方案
The error log is telling you that your Web server isn't configured to allow running CGI scripts from that directory.