[ Previous ] [ Contents ] [ Index ] [ Next ]

Configuring CGI with an AOLserver

You can control the behavior of AOLserver's CGI interface using the server setup pages. For example, you can control which files and directories are treated as CGI programs, you can determine how to run various types of programs, and you can set a group of environment variables for each type of program you use.


The Commercial service level is pre-configured with CGI support..




Note that if you use multiple virtual servers, you will need to configure the CGI interface for each virtual server.


To add and configure CGI:
  1. Access the setup server in one of the ways described in the "Accessing the Setup Server" section.

  2. On the Setup AOLserver page, follow the Virtual Servers link. The Setup Virtual Servers page lists all the virtual servers you have defined.

  3. Decide which virtual server should support the CGI interface. If the arrow next to that virtual server is a right arrow, click the right arrow so it becomes a down arrow. You see a page that lists the currently-defined parameter, capabilities, and loaded modules for that virtual server.

  4. Follow the CGI scripting link. You will see a page showing the parameters for the CGI.

  5. If the top of the Setup Server page for CGI shows a Basic icon (a green circle), click on the icon. This gives you a new page that shows an Expert icon (a black diamond) instead and lets you set more advanced parameters.

  6. Modify the values of any parameters you want to change. You can see online help about each parameter by clicking the information booth icon at the top of the page.

  7. If you plan to use a program which requires an interpreter, e.g., Perl or a shell script, you will need to define an Interpreter in the Interps section. If the interpreter you need is defined within the square brackets in the Interps section, click on the toggle next to the name of that interpreter. If the interpreter is not listed, follow these steps:

        http:/your-server/reservation/NewYork.pl 
    
    which is to run a Perl script using the interpreter in c:\perl\bin, define the Extension .pl (include the dot) and Interpreter c:\perl\bin\perl.exe.

        GET    /cgi     /usr/local/cgi
    
    tells the server that a request with the method GET and URI starting with "/cgi" could be found in the /usr/local/cgi directory. Or, this example:

    GET /cgi
    tells the server that a request with the method GET and URI starting with "/cgi" could be found in the server's pages directory.

  8. AOLserver will validate your changes and, if no errors are detected, write the information to the configuration file. (Note that not all errors can be detected.) If it finds any errors, AOLserver will inform you of the error and you will need to modify the parameters before the information can be written to the configuration file. You will need to stop and restart your server to see the effects of your changes.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.