Sample Directory Based Configuration Files


Webulator/400 will look in the following places for valid configuration values:

The sample directory based configuration files shipped with Webulator/400 should help you better understand how you can configure Webulator/400 to best suit your needs. The following sections described the shipped configuration files and how you can view and change them.

Minimum configuration file

The minimum Webulator/400 directory based configuration file consists of the Webulator/400 root directory with a Signon Method entry.

You can use this directory based configuration file by setting the ACCGBLFILE parameter of the CHGWWWCFG command to /WWWServ/Cfg/WblMAcc.cfg.

You can view or change the configuration settings by running the WRKWWWDIR command and selecting option 10 for the /*META/WEBULATOR/ directory or directly using the CHGWBLCFG command.

The root directory has the following value set:

If you prefer, the file /WWWServ/Cfg/WblMAcc.cfg can be edited directly with a stream file editor. The following lines are equivalent to the configuration described above

<Directory /*META/WEBULATOR/>
   Signon Screen
</Directory> 

Basic configuration file

The basic configuration sample expands upon the Minimum configuration file and overrides the following Webulator/400 default values:

You can use this directory based configuration file by setting the ACCGBLFILE parameter of the CHGWWWCFG command to /WWWServ/Cfg/WblBAcc.cfg.

You can view or change the configuration settings by running the WRKWWWDIR command and selecting option 10 for the /*META/WEBULATOR/ directory or directly using the CHGWBLCFG command.

The root directory has the following values set:

You can view or change the parsing strings by running the WRKWWWDIR command and selecting option 8 for the /*META/WEBULATOR/ directory or directly using the WRKWBLPRS command.

The root directory has the following parsing strings defined:

If you prefer, the file /WWWServ/Cfg/WblBAcc.cfg can be edited directly with a stream file editor. The following lines are equivalent to the configuration described above

<Directory /*META/WEBULATOR/>
   Signon Screen
   MenuType Image /icons/menuitem.gif
   TermSize Big
   TermColor Color
   TermTimeout 15

   ParsedButton DESCRIPTION F1 F1
   ParsedButton DESCRIPTION F2 F2
   ParsedButton DESCRIPTION F3 F3
   ParsedButton DESCRIPTION F4 F4
   ParsedButton DESCRIPTION F5 F5
   ParsedButton DESCRIPTION F6 F6
   ParsedButton DESCRIPTION F7 F7
   ParsedButton DESCRIPTION F8 F8
   ParsedButton DESCRIPTION F9 F9
   ParsedButton DESCRIPTION F10 F10
   ParsedButton DESCRIPTION F11 F11
   ParsedButton DESCRIPTION F12 F12
   ParsedButton DESCRIPTION F13 F13
   ParsedButton DESCRIPTION F14 F14
   ParsedButton DESCRIPTION F15 F15
   ParsedButton DESCRIPTION F16 F16
   ParsedButton DESCRIPTION F17 F17
   ParsedButton DESCRIPTION F18 F18
   ParsedButton DESCRIPTION F19 F19
   ParsedButton DESCRIPTION F20 F20
   ParsedButton DESCRIPTION F21 F21
   ParsedButton DESCRIPTION F22 F22
   ParsedButton DESCRIPTION F23 F23
   ParsedButton DESCRIPTION F24 F24
   ParsedButton DESCRIPTION Enter Enter
   ParsedButton DESCRIPTION Enter ENTER
</Directory>

Inheritance Configuration file

Inheritance is a very important and powerful directory based configuration concept. It is important to understand the hierarchical structure inherent to URLs. Consider the following example:
http://www.xyz.com/www5250/
   http://www.xyz.com/www5250/1/
      http://www.xyz.com/www5250/1/a/
      http://www.xyz.com/www5250/1/b/
This example shows the hierarchical nature of URLs which is the foundation for directory based configuration inheritance. In the above example, the first URL is the Webulator/400 root URL and therefore has no parent URL. The second URL can inherent directory entries from the first URL (Parent URL). Both the third and forth URL can inherit from the second URL (Parent URL ) as well as the first URL (Grandparent URL). Note that there is no inheritance between the third and forth URLs.

You can use this directory based configuration file by setting the ACCGBLFILE parameter of the CHGWWWCFG command to /WWWSRV/CFG/WBLIACC.CFG.

You can view or change the configuration settings for each of the directory entries by running the WRKWWWDIR command and selecting option 10 for the desired directory entry or directly using the CHGWBLCFG command.

Please note that this configuration file has four directory entries that correspond to the URLs shown above. The names of the directory entries are as follows:

The /*META/WEBULATOR/ directory has the following values set:

The /*META/WEBULATOR/1/ directory has the following value set:

The /*META/WEBULATOR/1/A/ directory has the following value set:

The /*META/WEBULATOR/1/B/ directory has the following value set:

If you prefer, the file /WWWServ/Cfg/WblIAcc.cfg can be edited directly with a stream file editor. The following lines are equivalent to the configuration described above

<Directory /*META/WEBULATOR/>
  Signon UseAuthentication
  TermSize Big
</Directory>

<Directory /*META/WEBULATOR/1/>
  Signon Screen
</Directory>

<Directory /*META/WEBULATOR/1/a/>
   TermSize Small
</Directory>

<Directory /*META/WEBULATOR/1/b/>
   TermColor Color
</Directory>

Related AS/400 Commands