Advertisement

08.28.2008 at 02:20PM PDT, ID: 23687222 | Points: 500
[x]
Attachment Details

Website log issue (username gets logged as unkown) hosted off an iSeries AS400

Asked by bobjoest in AS / 400, CGI Scripting, Web Hosting

Tags: , , ,

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/QZSRCORE.SRVPGM
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/HostPublisher/doc/>
   Allow From all
</Directory>
<Directory /QIBM/UserData/HostPublisher/Server/production/documents/>
   Allow From all
</Directory>
<Directory /WWW/html/>
   Allow From all
</Directory>
<Directory /QIBM/ProdData/HostOnDemand/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/SWIROUTER.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/DB2WWW.PGM/$1
ScriptAliasMatch ^/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/DB2WWW.PGM/$1
ScriptAliasMatch ^/QSYS\.LIB/QHTTPSVR\.LIB/(.*) /QSYS.LIB/QHTTPSVR.LIB/$1
AliasMatch ^/QIBM/ProdData/HTTP/Public/(.*) /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/HostOnDemand/ondemand/HOD/$1
MapMatch ^/cgi-bin/db2www/(.*) /QSYS.LIB/CGI.LIB/DB2WWW.PGM/$1
MapMatch ^/CGI-BIN/DB2WWW/(.*) /QSYS.LIB/CGI.LIB/DB2WWW.PGM/$1
AliasMatch ^/WWW/html/(.*) /WWW/html/$1
AliasMatch ^/_IBM_HP_WebAdmin_/(.*) /QIBM/UserData/HostPublisher/Server/production/documents/$1
AliasMatch ^/_IBM_HP_doc_/(.*) /QIBM/ProdData/HostPublisher/doc/$1
AliasMatch ^/HostPublisher/(.*) /QIBM/UserData/HostPublisher/Server/production/documents/$1
# Start SEQUEL
AliasMatch ^/secure/SEQUEL/(.*)$ /SEQUEL/SWI/$1
ScriptAliasMatch ^/secure/SEQUEL(.*)$ /QSYS.LIB/SEQUELWI.LIB/SWIROUTER.PGM
AliasMatch ^/secure/sequel/(.*)$ /SEQUEL/SWI/$1
ScriptAliasMatch ^/secure/sequel(.*)$ /QSYS.LIB/SEQUELWI.LIB/SWIROUTER.PGM
CGIConvMode %%MIXED/MIXED%%
AliasMatch ^/SEQUEL/(.*)$ /SEQUEL/SWI/$1
ScriptAliasMatch ^/SEQUEL(.*) /QSYS.LIB/SEQUELWI.LIB/SWIROUTER.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
[+][-]08.28.2008 at 09:41PM PDT, ID: 22342390

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 10:48PM PDT, ID: 22342791

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.29.2008 at 09:41AM PDT, ID: 22347158

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.29.2008 at 11:49PM PDT, ID: 22350906

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2008 at 08:21AM PDT, ID: 22378241

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.17.2008 at 07:26AM PST, ID: 22976161

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.17.2008 at 09:44AM PST, ID: 22977583

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.17.2008 at 09:47AM PST, ID: 22977609

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.18.2008 at 09:25PM PST, ID: 22991734

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628