Python's CGI configuration
Python, CGI, IIS
Environment: Windows Server 2003 Python2.4 IIS6.0
1. Start IIS Manager 2.Web Service Extension: Add a new service extension extension: .py Requirements: YourPath / Python.exe Set to Allow 3. Default Website Properties: Main Directory -> Configuration -> Mapping -> Add executable: YourPath / Python.exe -u "% s"% s extension: .py Action: All
Now the configuration has been basically completed, and of course it can also establish a virtual directory specializing in the CGI script, such as cgi-bin.
Write a simple Python CGI script to test:
First establish an HTM to place the following form: