Set up the HTTPServer web server (IBM i web servers only)

  1. Use the IBM Web Administration Console to create a web server. You will create one web server for each Lawson Environment on your system.
  2. Edit the httpd.conf file to add the following configuration to the virtual host. Define a virtual host in httpd.conf for each Environment you plan to install.
    • Define the WebSphere plugin location, ensuring that it points to the location of the plugin in the directory structure for the application server within the federated node.

    • Define the LoadModule directive: LoadModule was_ap20_module /QSYS.LIB/QWAS85A.LIB/QSVTAP24.SRVPGM

      Note: The above LoadModule directive worked at the time of publication of this guide, but they may be changed with future IBM Fixpacks or Group PTFs. See IBM’s WebSphere Application Server documentation for the appropriate LoadModule *SRVPGM to use with your versions of the IBM i O/S and WebSphere.
    • Define a document root directory. As a best practice, use LAWENVNAME/web. This directory must exist on your system before you can start the web server.

    • Define a listening port for the web server.

    • Define the ServerUserID. This value must be the LAWSON OS user that you created as part of this installation.

    • Define default documents index.html, index.htm, default.html and default.htm.

    Example of httpd.conf file

    Note: Items in bold represent things you must change or add.

    Example

    WebSpherePluginConfig /QIBM/UserData/WebSphere/AppServer/V855/ND/profiles/lsfprod1/config/
    cells/PROCRT01_LSFPROD1/nodes/IHS_PROCRT01_LSFPROD1_node/servers/IHS_PROCRT01_LSFPROD1/plugin-cfg.xml
    LoadModule was_ap20_module /QSYS.LIB/QHTTPSVR.LIB/QSVTAP2070.SRVPGM
    # HTTP server (powered by Apache) configuration
    DocumentRoot /lsfprod1/web
    Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes -MultiViews
    Listen *:9001
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%{Cookie}n \"%r\" %t" cookie
    LogFormat "%{User-agent}i" agent
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    CustomLog logs/access_log combined
    SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
    SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
    SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
    SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
    SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
    SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
    
    ServerUserID LAWSON
    DirectoryIndex index.html index.htm default.html default.htm 
    
    <Directory />
       Order Deny,Allow
       Deny From all
    </Directory>
    <Directory /lsfprod1/web/>
       Order Allow,Deny
       Allow From all
    </Directory>