Set up an HTTPServer web server for the Infor Lawson System Mobile Monitor (IBM i web servers only)

  1. If you want to use a separate web server from the one for the Infor Lawson System Foundation Environment, use the IBM Web Administration Console to create a web server for the Infor System Console and Infor Lawson System Mobile Monitor. If you want to use the web server from the Infor Lawson System Foundation Environment, edit the httpd.conf file as described below, so that there is a separate virtual host for the Infor System Console and Infor Lawson System Mobile Monitor.
  2. Edit the httpd.conf file to add the following configuration to the virtual host. Infor recommends that you define a virtual host in httpd.conf for each Environment you plan to install plus one for the Infor System Console and Infor Lawson System Mobile Monitor.
    • Define the WebSphere plugin location, ensuring that it points to the location of the plugin in the directory structure for the Infor System Console and Infor Lawson System Mobile Monitor application server within the federated node.
    • Define the LoadModule directive: LoadModule was_ap20_module /QSYS.LIB/QHTTPSVR.LIB/QSVT2270.SRVPGM
    • Define a document root directory. It is recommended that you use LAWMM/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.
    • In the DirectoryIndex setting, define the default documents as index.htm, index.html, default.htm, and default.html.

    For exxample, the httpd.conf file:

    WebSpherePluginConfig /QIBM/UserData/WebSphere/AppServer/V70/ND/profiles/lsfprod1/config/
    cells/PROCRT01_LSFPROD1/nodes/IHS_PROCRT01_LSFPROD1_node/servers/IHS_PROCRT01_LSFMM/plugin-cfg.xml
    LoadModule was_ap20_module /QSYS.LIB/QHTTPSVR.LIB/QSVTAP2070.SRVPGM
    # HTTP server (powered by Apache) configuration
    DocumentRoot /lsfmm/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 /lsfmm/web/>
       Order Allow,Deny
       Allow From all
    </Directory>