My company has this website that is hosted off an iSeries server. It uses what is called CGIDEV and an Apache Web Server. This thing was set up a long time ago and I'm new to the AS400 world. The issue is this, I need to pull the userid of the person requesting a page but it shows as "UNKNOWN" in the log file. It doesn't make sense to me and it's not like other Apache versions. The config file asks for the username but it gets written as unknown. This site is only available on the company network. If anyone has any suggestions on how I should or could do this I would be grateful. I know there is a new version called CGIDEV2 but I installed that and got unkown logged as well. It does use a CGI-BIN, I'm not too familiar with those either. Here is the config file.
LoadModule deflate_module /QSYS.LIB/QHTTPSVR.LIB/QZS
RCORE.SRVP
GM
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" extended
CustomLog /www/chkweb/logs/requests.
log extended
DynamicCache On
LiveLocalCache Off
<Location />
<LimitExcept GET HEAD OPTIONS POST>
Order Allow,Deny
Deny From all
</LimitExcept>
</Location>
Options +ExecCGI +FollowSymLinks -SymLinksIfOwnerMatch -Includes +Indexes -MultiViews
DefaultType www/unknown
Listen *:80
LogLength 2048000
ErrorLog /www/chkweb/logs/log.err
ThreadsPerChild 40
MaxKeepAliveRequests 1
TimeOut 120
KeepAliveTimeout 4
IdentityCheck On
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html
LogLevel Info
LogMaint /www/chkweb/logs/requests.
log 30 10485760
DirectoryIndex welcome.html index.html
# CGIConvMode %%MIXED/MIXED%%
ScriptLog /www/chkweb/logs/cgierror.
err
ScriptLogLength 2048000
IndexOptions -DescriptionWidth -FancyIndexing -FoldersFirst -IconHeight -IconsAreLinks -IconWidth -IgnoreCase -IgnoreClient -NameWidth -NameMinWidth -ScanHTMLTitles -SelectiveDirAccess -ShowSmallFileBytes -ShowOwner -SuppressColumnSorting -SuppressDescription -SuppressHTMLPreamble -SuppressIcon -SuppressLastModified -SuppressRules -SuppressSize -TrackModified -VersionSort
HeaderName README
<Directory />
Order Allow,Deny
Deny From all
UserID %%SERVER%%
</Directory>
<Directory /QIBM/ProdData/HostPublish
er/doc/>
Allow From all
</Directory>
<Directory /QIBM/UserData/HostPublish
er/Server/
production
/documents
/>
Allow From all
</Directory>
<Directory /WWW/html/>
Allow From all
</Directory>
<Directory /QIBM/ProdData/HostOnDeman
d/ondemand
/HOD/>
Allow From all
</Directory>
<Directory /QIBM/ProdData/HTTP/Public
/TC1/ICSS/
HTML/>
Allow From all
</Directory>
<Directory /chkiweb/asp1/>
Allow From all
</Directory>
<Directory /root/ascii/>
Allow From all
</Directory>
<Directory /root/ads/adsdoc/>
Allow From all
</Directory>
<Directory /chkiweb/>
Allow From all
<FilesMatch ^topbanner\.htm$>
Allow From all
</FilesMatch>
</Directory>
<Directory /chkiweb/topbanner.htm/>
Allow From all
</Directory>
<Directory /qopensys/jterm/>
Allow From all
</Directory>
<Directory /home/>
Allow From all
</Directory>
<Directory /QSYS.LIB/TEST.LIB/>
Allow From all
</Directory>
<Directory /QSYS.LIB/CGI.LIB/>
Allow From all
</Directory>
<Directory /QIBM/ProdData/HTTP/Public
/>
Allow From all
</Directory>
<Directory /QIBM/ProdData/infocenter/
>
Allow From all
<FilesMatch ^index\.htm$>
Allow From all
</FilesMatch>
</Directory>
<Directory /QIBM/ProdData/infocenter/
index.htm/
>
Allow From all
</Directory>
<Directory /QSYS.LIB/QHTTPSVR.LIB/>
Allow From all
</Directory>
# Start SEQUEL
<Directory /QSYS.LIB/SEQUELWI.LIB/SWI
ROUTER.PGM
>
Order allow,deny
Allow from All
Options +ExecCGI
</Directory>
<Directory /SEQUEL/SWI/>
Order allow,deny
Allow from All
</Directory>
# End SEQUEL
MapMatch ^/cgi-bin/IC/(.*) /QSYS.LIB/QHTTPSVR.LIB/DB2
WWW.PGM/$1ScriptAliasMatch ^/QSYS\.LIB/QHTTPSVR\.LIB/
(.*) /QSYS.LIB/QHTTPSVR.LIB/$1
AliasMatch ^/InfoCenter$ /QIBM/ProdData/infocenter/
index.htm
AliasMatch ^/InfoCenter/(.*) /QIBM/ProdData/infocenter/
$1
AliasMatch ^/QIBM/ProdData/infocenter
/(.*) /QIBM/ProdData/infocenter/
$1
MapMatch ^/cgi-bin/IC/(.*) /QSYS.LIB/QHTTPSVR.LIB/DB2
WWW.PGM/$1ScriptAliasMatch ^/QSYS\.LIB/QHTTPSVR\.LIB/
(.*) /QSYS.LIB/QHTTPSVR.LIB/$1
AliasMatch ^/QIBM/ProdData/HTTP/Publi
c/(.*) /QIBM/ProdData/HTTP/Public
/$1
MapMatch ^/cgi-bin/(.*) /QSYS.LIB/CGI.LIB/$1.PGM
ScriptAliasMatch ^/QSYS\.LIB/CGI\.LIB/(.*) /QSYS.LIB/CGI.LIB/$1
MapMatch ^/cgi-test/(.*) /QSYS.LIB/TEST.LIB/$1.PGM
ScriptAliasMatch ^/QSYS\.LIB/TEST\.LIB/(.*)
/QSYS.LIB/TEST.LIB/$1
AliasMatch ^/home/(.*) /home/$1
AliasMatch ^/qopensys/jterm/(.*) /qopensys/jterm/$1
AliasMatch ^/$ /chkiweb/topbanner.htm
AliasMatch ^/adsd/(.*) /root/ads/adsdoc/$1
AliasMatch ^/ascii/(.*) /root/ascii/$1
AliasMatch ^/asp1/(.*) /chkiweb/asp1/$1
AliasMatch ^/sample/(.*) /QIBM/ProdData/HTTP/Public
/TC1/ICSS/
HTML/$1
MapMatch ^/ADSD/(.*) /ROOT/ADS/ADSDOC/$1
AliasMatch ^/hod/(.*) /QIBM/ProdData/HostOnDeman
d/ondemand
/HOD/$1
MapMatch ^/cgi-bin/db2www/(.*) /QSYS.LIB/CGI.LIB/DB2
WWW.PGM/$1MapMatch ^/CGI-BIN/DB2WWW/(.*) /QSYS.LIB/CGI.LIB/DB2
WWW.PGM/$1AliasMatch ^/WWW/html/(.*) /WWW/html/$1
AliasMatch ^/_IBM_HP_WebAdmin_/(.*) /QIBM/UserData/HostPublish
er/Server/
production
/documents
/$1
AliasMatch ^/_IBM_HP_doc_/(.*) /QIBM/ProdData/HostPublish
er/doc/$1
AliasMatch ^/HostPublisher/(.*) /QIBM/UserData/HostPublish
er/Server/
production
/documents
/$1
# Start SEQUEL
AliasMatch ^/secure/SEQUEL/(.*)$ /SEQUEL/SWI/$1
ScriptAliasMatch ^/secure/SEQUEL(.*)$ /QSYS.LIB/SEQUELWI.LIB/SWI
ROUTER.PGM
AliasMatch ^/secure/sequel/(.*)$ /SEQUEL/SWI/$1
ScriptAliasMatch ^/secure/sequel(.*)$ /QSYS.LIB/SEQUELWI.LIB/SWI
ROUTER.PGM
CGIConvMode %%MIXED/MIXED%%
AliasMatch ^/SEQUEL/(.*)$ /SEQUEL/SWI/$1
ScriptAliasMatch ^/SEQUEL(.*) /QSYS.LIB/SEQUELWI.LIB/SWI
ROUTER.PGM
# End SEQUEL
AliasMatch ^/(.*) /chkiweb/$1
# AccessReportTemplate test1
# AccessReportDescription "report1"
# AccessReportTopList 99
# Enable GET Y1
# Enable POST Y2
# Map /root/qopensys/jterm/*
# UseACLs protectonly
# AccessReportDoDnsLookup On
# DoReporting Off 0
# DoWebUsageMining Off 0
# ReportProcessOldLogs Append
# ReportDataArchive None
# ReportDataExpire 0
# ReportDataSizeLimit 0
# Start SEQUEL
<Location /secure/>
Require valid-user
AuthType Basic
AuthName Secure_ISERIES1
PasswdFile %%SYSTEM%%
UserID %%CLIENT%%
</Location>
# End SEQUEL
Start Free Trial