If you want the. It should look something like this:. If you want to make your CGI script execute as the default page for a directory, you have to add another line to the Apache configuration file httpd. Simply search for the line in the file that begins with a "DirectoryIndex" and add "index. For example, if the line used to be:. If you have both "index. You are not limited to the above two files. For example, I have set up Apache on my computer with the following line:.
If you have also installed PHP support and enabled server side includes in Apache , the directive will instruct Apache to look first for an index. That's it. Your Apache server now supports the execution of CGI scripts. You will have to restart the server before the new configuration comes into effect. The work's not ended however — read on. However, if it's a script that relies on an interpreter such as Perl or Python, you will have to modify the first line of the script.
Related Discussions. Resources Support. CyberRes Academy. Partner Portal. Contact us. Privacy Policy Terms of Use. Optional Boolean attribute. Specifies whether a CGI application runs in its own console. Note: If the value is set to true , each CGI application creates a new console when the application is started. A value of false indicates that CGI applications should run without a console.
The default value is false. Specifies whether a CGI process is created in the system context or in the context of the requesting user. The default value is true. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to run a python cgi web server in windows Ask Question. Asked 9 years ago. Active 9 years ago. Viewed 8k times. Server from http.
0コメント