|
I have been using CGI onV5R1 without any problems for 10 or nore years. Now
I need to get the same code and same database working on a different system
with V5R3. This means changing my configuration to Apache.
I have managed to my very first page served correctly by Apache with the
URL 192.168.1.5/cgi-bin/test (it looks oK) but as soon as I attempt to get
the next page I get error 404 - The requested URL
/cgi-bin/test.PGM/079339944434766/ was not found on this server. When I
look at the log, I see that serious errors occur with the first page. I
have checked on the iSeries and all the correct iSeries files and programs
are opened or called in job 079339 to allow the first page to be sent to
the browser.
[Tue Nov 06 15:58:34 2018] [alert] (OS 5)Unknown host: ZSRV_MSG0358:
mod_unique_id: Unable to use gethostbyname("ERROS07.WWW.STIPPLE.CO.UK")
[Tue Nov 06 15:58:34 2018] [alert] ZSRV_MSG0632: No UNIQUE_ID environment
variable will be generated
ZSRV_MSG064F: QHTTPSVR/QZSRHTTP: Could not determine the server's
fully-qualified TCP domain name. Using 127.0.0.1 for ServerName
[Tue Nov 06 15:58:37 2018] [alert] (OS 5)Unknown host: ZSRV_MSG0358:
mod_unique_id: Unable to use gethostbyname("ERROS07.WWW.STIPPLE.CO.UK")
[Tue Nov 06 15:58:37 2018] [alert] ZSRV_MSG0632: No UNIQUE_ID environment
variable will be generated
ZSRV_MSG064F: QHTTPSVR/QZSRHTTP: Could not determine the server's
fully-qualified TCP domain name. Using 127.0.0.1 for ServerName
[Tue Nov 06 15:58:37 2018] [alert] (OS 5)Unknown host: ZSRV_MSG0358:
mod_unique_id: Unable to use gethostbyname("ERROS07.WWW.STIPPLE.CO.UK")
[Tue Nov 06 15:58:37 2018] [alert] ZSRV_MSG0632: No UNIQUE_ID environment
variable will be generated
ZSRV_MSG064F: QHTTPSVR/QZSRHTTP: Could not determine the server's
fully-qualified TCP domain name. Using 127.0.0.1 for ServerName
Although my server is named ERROS07 and a valid domain name is
www.stipple.co.uk, used only for static pages, neither of these are
mentioned in my Apache configuration and I don't understand why they are
required or where. The Apache configuration is below. Can anyone help
please? I am stuck. My static pages work correctly. Please note tthat I
have commented out a few lines.
Many thanks
Rob Dixon
*STIPPLE* <http://192.168.2.70:2001/STIPPLE> > Display Configuration File
Display Configuration File
*HTTP server:* STIPPLE
*Selected file:* /errostest/conf/httpd.conf
* 1* * # Configuration originally created by Create HTTP Server wizard
on Tue Oct 30 17:09:29 GMT 2018*
* 2* * ScriptAlias /cgi-bin/erros /QSYS.LIB/TEST.LIB/INITIAL.PGM*
* 3* * Listen *:80*
* 4* * DocumentRoot /errostest*
* 5* * DirectoryIndex /Home_1.html*
* 6* * # ServerName 192.168.2.70*
* 7* * # AccessFileName .htaccess*
* 8* * # Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch
-Includes -IncludesNoExec -Indexes -MultiViews*
* 9* * LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined*
* 10* * LogFormat "%{Cookie}n \"%r\" %t" cookie*
* 11* * LogFormat "%{User-agent}i" agent*
* 12* * LogFormat "%{Referer}i -> %U" referer*
* 13* * LogFormat "%h %l %u %t \"%r\" %>s %b" common*
* 14* * CustomLog logs/access_log combined*
* 15* * LogMaint logs/access_log 7 0*
* 16* * # Options +ExecCGI -Includes -Indexes*
* 17* * LogTime GMT*
* 18* * # AccessFileName .htaccess*
* 19* * TimeOut 1500*
* 20* * KeepAliveTimeout 1500*
* 21* * # Options -Indexes*
* 22* * SetEnvIf "User-Agent" "Mozilla/2" nokeepalive*
* 23* * SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0*
* 24* * SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0*
* 25* * SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0*
* 26* * SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive*
* 27* * SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0*
* 28* * PersistentCGITimeout 3600*
* 29* * MaxPersistentCGITimeout 3600*
* 30* * CGIRecyclePersist On*
* 31* * CGIMultiThreaded On*
* 32* * AddOutputFilter INCLUDES .shtml*
* 33* * # IndexOptions -DescriptionWidth -FancyIndexing -IconHeight
-IconWidth -NameWidth -NameMinWidth -ScanHTMLTitles -ShowOwner
-SuppressDescription -SuppressHTMLPreamble +SuppressIcon
-SuppressLastModified -SuppressRules -SuppressSize*
* 34* * # ProxyReverse Off*
* 35* * <Directory />*
* 36* * Order Deny,Allow*
* 37* * Deny From all*
* 38* *</Directory>*
* 39* * <Directory /errostest>*
* 40* * Options None*
* 41* * Order Allow,Deny*
* 42* * Allow From all*
* 43* *</Directory>*
* 44* * <Directory /QSYS.LIB/TEST.LIB>*
* 45* * SetHandler cgi-Script*
* 46* * Options +ExecCGI*
* 47* * AuthName "Protected - iSeries Username required"*
* 48* * AuthType Basic*
* 49* * PasswdFile %%SYSTEM%%*
* 50* * UserID %%CLIENT%%*
* 51* * Require valid-user*
* 52* * order allow,deny*
* 53* * Allow From All*
* 54* *</Directory>*
* 55*
--
Rob Dixon
www.erros.co.uk
www.boarstall.com
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avast.com
<
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#m_3873805019487052361_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.