This scenario discusses how to add a new directory.
The JKL Toy Company (a fictitious company) has a need to add a directory to their JKLTEST configuration. The JKL Web administrator wants to create a directory to keep online employee profile information, such as current projects and contact information. Due to the large number of employees, a separate directory will be created to contain the employee profile information. The new directory will be called profiles.
Example: http://jkl_server:2001
Example: JKLTEST
Example: /www/jkltest/profiles/
Example: /profiles/
Select one of the following methods below:
Manage one server
Manage all servers
Example: JKLTEST
Example: http://jkl_server:1975/profiles/
Your new directory will display a generic HTML file provided by the IBM Web Administration for i5/OS interface.
Your configuration will look similar if you used the given example in this and previous examples.
Example: JKLTEST
Alias /profiles/ /www/jkltest/profiles/ Listen *:1975 DocumentRoot /www/jkltest/htdocs ServerRoot /www/jkltest Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes -MultiViews 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 <Directory /> Order Deny,Allow Deny From all </Directory> <Directory /www/jkltest/profiles> Order Allow,Deny Allow From all </Directory> <Directory /www/jkltest/htdocs> Order Allow,Deny Allow From all </Directory>