2.9 Configure Apache Web Server

Proceed with the following steps to configure Apache Web server to execute NSN scripts and ASP pages.

2.9.1 Configure Apache 1.3 Web server

  1. Open the file sys:apache\conf\httpd.conf.

  2. Enter the following configuration details in httpd.conf file.

    LoadModule lcgi_module modules/mod_lcgi.nlm
    <IfModule mod_lcgi.c>
       AddHandler lcgi-script nlm .pl .asp .nsp .bas
       LCGIModuleMap sys:\nsn\lcgi\scrptpgs.nlm .asp .nsp /sp
       LCGIModuleMap sys:\nsn\lcgi\cgi2ucs.nlm .bas /nsn
       ScriptAlias /nsn sys:/nsn/web
    </IfModule>
    

    NOTE:If the NSN scripts are kept in a different directory enter the corresponding path for ScripAlias.

  3. Restart the Web server and test the setup by typing the URL similar to

    http://<servername>/nsn/env.bas
    

2.9.2 Configure Apache 2.0 Web server

The AMP pattern installation makes the necessary changes to Apache configuration to enable the execution of NSN scripts and Novell Script Pages from Apache 2.0 Web server.You can test the Web server configuration using a browser. To do this, enter a URL using the following format:

http://server_name:port_number/nsn/env.bas

This URL displays the Web server environment variables.

If AMP pattern is not selected during server installation, then to enable the execution of NSN scripts and ASP pages from Apache Web server on NetWare, include the following lines in the httpd.conf file.

include sys:apache2/conf/mod_nsn.conf

You can test the Web server configuration using a browser. To do this, enter a URL using the following format:

http://server_name:port_number/nsn/env.bas

This URL displays the Web server environment variables.