Previous Next Contents Index


Chapter 8

Configuring the Web Connector Plug-In

This chapter describes the web connector plug-in which sends users' requests to applications residing on Netscape Application Server.

The following topics are included in this chapter:


About the Web Connector Plug-In
The web connector plug-in is installed on your web server at the time you install Netscape Application Server (NAS).

If you install NAS on the same machine where a web server is installed, the web connector is simultaneously installed and the web server configured automatically.

If you install NAS on a machine where a web server is not installed, you must manually install the web connector on that web server machine. For more information about manually installing the web connector, see the Installation Guide.

You can configure the following web connector functions:

Connector functionality
Description
More information
Web server request logging
Mapping web server request components to database fields and adding HTTP variables to the log.
Configuring the Web Connector for Web Server Logging
Cookie and hidden field security
Enable or disable cookies and hidden fields during web server to NAS communication.
Configuring Cookie and Hidden Field Usage
CGI flag for CGI request processing
Set a flag to process requests in CGI mode when that is necessary.
Configuring a CGI Flag for CGI Requests
The plug-in port number
Reconfigure the port number used by the plug-in.
Changing the Web Connector Port Number
Configuring HTTP variables as input for application components
Determine which HTTP variables can be accessed by application components.
Specifying HTTP Variables for Input to Application Components


Manually Configuring a Web Server
When you install Netscape Application Server (NAS), your web server is automatically configured for the web connector plug-in, meaning that all the necessary directories and settings on the web server are updated. However, there may be occasions, when, after you've installed the web connector plug-in, you must manually re-configure the web server. This procedure is recommended only if you are having problems with the connection between NAS and your web server.

The following steps explain how to manually configure a web server to use the web connector plug-in, whether your web server resides on the same or a different machine than where NAS is installed.

If you perform only step one of the following procedure (enabling CGI), the web connector will run as a CGI script. If you perform the entire procedure, the web connector will run as a plug-in, which is more efficient since a plug-in is faster than a CGI script.

You must be logged in as the same administrator user who installed the web server.

To reconfigure a Netscape web server, perform the following steps:

  1. Enable CGI, if it is not already enabled:
    1. Go to the Netscape program group and click Administer Netscape Servers.
    2. Enter the administrator ID and password, and click OK.
    3. On the Netscape Server Selector screen, click on the web server instance you want to configure.
    4. On the main menu bar across the top of the page, click Programs.
    5. On the CGI directory screen under URL prefix, type cgi-bin.
    6. Under CGI directory, enter the cgi-bin path.

  2. Edit the obj.conf file in the web server configuration directory.
  3. In the Object name=default section, just after type=text/plain section, add the following line:
  4. In the Object name=cgi section(s), insert the following line immediately before the line Service fn="send-cgi":
  5. Make a copy of the current version of the file obj.conf and copy it to the back up version (so that the backup is consistent with the current version) in the following directory:
  6. Unix only: Modify the web server's start and stop scripts as follows:
  7. Restart the web server.
Reconfiguring the Microsoft Internet Information Server
Keep in mind the following information when reconfiguring Microsoft IIS:


Configuring the Web Connector for Web Server Logging
Web server requests are divided into components. Each component is represented by an HTTP variable. HTTP variables are standardized across all web servers, so the configurations you make with regard to their use are web- server independent.

Mapping HTTP Variables to Database Fields To enable logging of a particular component of a web server request, you must map HTTP variables to specific database fields to ensure that web server requests are properly logged. Mapping HTTP variables to database fields is done in the web connector plug-in on the web server machine. The web server machine may or may not be the same machine where you installed Netscape Application Server (NAS).

To map HTTP variables to database fields, perform the following steps:

  1. Open the Netscape Registry Editor by typing kregedit at the command line.
  2. Open the following key:
  3. Double-click the HTTP variable you want to map to a database field.
  4. Enter the database field name as the value data and click OK.
  5. Leave any HTTP variables you do not want to log blank.
  6. Close the editor.
See your web server documentation for an explanation of the HTTP variables.

Use the Netscape Registry Editor to modify the web connector plug-in.

Adding HTTP Variables to the Log You can also modify the list of available HTTP variables, adding variables to the list to expand your logging options.

To add HTTP variables to the log, perform the following steps:

  1. Open the Netscape Registry Editor by typing kregedit at the command line.
  2. Open the following key:
  3. Add a new String value with the new HTTP variable name.
  4. Double-click the new HTTP variable and enter the database field name as the value data.
  5. Click OK.
  6. Repeat steps 3 through 5 for each new HTTP variable.
  7. Close the editor.
See your web server documentation for a list and an explanation of all available HTTP variables.


Configuring Cookie and Hidden Field Usage
Netscape Application Server (NAS) is designed to work with web browsers in all modes of cookie and hidden-field security. There are three configurations you can set for the web connector plug-in to support the various security modes. These configurations are described in the following table:

Cookie setting
Description
0
Cookies and hidden fields are passed back to the requesting web browser. This is the default setting.
1
Only hidden fields are passed back to the requesting web browser.
2
Only cookies are passed back to the requesting web browser.

To configure cookie and hidden field usage, perform the following steps:

  1. Open the Netscape Registry Editor by typing kregedit at the command line.
  2. Open the following key:
  3. Double-click the NoCookie DWORD value.
  4. To disable cookies being passed to the web browser, change the value data to 1.
  5. To disable hidden fields being passed to the web browser, change the value data to 2.
  6. To enable both cookie and hidden fields, change the value data to 0.
  7. When finished, close the editor.

Configuring a CGI Flag for CGI Requests
Some requests must be processed in CGI mode. You can set a flag in the web connector plug-in to identify those requests.

To configure a CGI flag for CGI requests, perform the following steps:

  1. Open the Netscape Registry Editor by typing kregedit at the command line.
  2. Open the following key:
  3. Double-click the AgentToken String value.
  4. For the value data, enter the flag that marks requests for CGI mode processing.
  5. Click OK.
  6. Close the editor.

Changing the Web Connector Port Number
In certain configurations, the web connector port number might conflict with another software package. You can reconfigure the connector port number to resolve this conflict.

To change the web connector port number, perform the following steps:

  1. Open the Netscape Registry Editor. by typing kregedit at the command line.
  2. Open the following key:
  3. Double-click the ListenPort DWORD value and change the value data to an available port number.
  4. Click OK.
  5. Close the editor.

Specifying HTTP Variables for Input to Application Components
HTTP variables can be passed as part of the application request to application components like Enterprise Java Beans (EJBs). This allows the developer to determine certain information about the request and use that information when processing the request.

For example, the application might look at the HTTP_REFERER variable to determine where the request is coming from. This information might be used to present a more individualized greeting screen, or to keep statistics about where requests originate.

These variables are specified by setting the HTTP variable to a 1 for Microsoft web servers, or to a string for Netscape web servers. Use the current entries in the registry as an example.

To specify HTTP variables for input to application components, perform the following steps:

  1. Open the Netscape Registry Editor by typing kregedit at the command line.
  2. Open the appropriate key:
  3. Add a new String value with the new HTTP variable name.
  4. Double-click the new HTTP variable and enter the one of the following as the value data:
  5. Click OK.
  6. Repeat steps 4 through 6 for each new HTTP variable.
  7. Close the editor.
 

© Copyright 1999 Netscape Communications Corp.