简体   繁体   中英

configure apache for python in windows

I installed python27 , and also the latest version of apache.

in order to run a simple program by refering link

also edited the httpd.conf file also

but i accessed the folder localhost/cgi-bin displays the error "Forbiden you don't have the permission to access this folder"

Changed the folder permission from properties of folder.

any other way to solve the problem.

So you have a cgi script named hello.py containing the code from the tutorial and installed in the cgi-bin directory as configured in the httpd.conf file?

If you browse to http://localhost/cgi-bin/ you will most likely see a HTTP 403 Forbidden response with text along the lines of:

You don't have permission to access /cgi-bin/ on this server.

You need to execute the actual cgi script, not the containing directory, so try browsing to http://localhost/cgi-bin/hello.py .

If that doesn't work, what changes did you make to httpd.conf ? Have you installed the cgi script in the directory specified in the ScriptAlias /cgi-bin/ directive?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM