× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You can get rid of the line: CGIConvMode %%EBCDIC/EBCDIC%%. That is what
is causing your problem. You normally do not need to have this line in
your configuration.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Terry Anderson
Sent: Tuesday, September 04, 2007 10:04 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] CGIDEV2 & Page not Found.

Matt,
Here is the config file. Since this is a brand new i5 525, I have
changed the system value QCCSID from 65535 to 37.

#=======================================================================
==
# APACHE directives to run CGIDEV2
#
# To complete the installation of these directives,
# execute the following command:
# CPYF FROMFILE(CGIDEV2/QATMHINSTC) TOFILE(QUSRSYS/QATMHINSTC)
# FROMMBR(CGIDEV2APA) TOMBR(CGIDEV2APA) MBROPT(*REPLACE)
CRTFILE(*YES)
#
# To start the HTTP instance for CGIDEV2,
# execute the following command:
# STRTCPSVR SERVER(*HTTP) HTTPSVR(CGIDEV2APA)
# Then, run command WRKACTJOB SBS(QHTTPSVR) and make sure that more than
# one CGIDEV2APA is running.
# If not, the CGIDEV2APA HTTP instance failed being started.
# You should then look in the joblogs for CGIDEV2APA jobs and find out
# what the error was.
#
# To run CGIDEV2, type the following in the location line of your
browser:
# http://yourAS400IpAddr:8014/cgidev2/start
#
#=======================================================================
==
# PART 1
#=======================================================================
==
ServerRoot /cgidev/conf
DocumentRoot /cgidev/conf/hotdocs
Listen 8014
DefaultType text/html
# CGI
CGIConvMode %%EBCDIC/EBCDIC%%
ThreadsPerChild 53
MaxCGIJobs 100
StartCGI 2 QTMHHTP1
Timeout 120
# PERSISTENT CGI
MaxPersistentCGI 5
CGIRecyclePersist on
PersistentCGITimeout 60
# PERFORMANCE
DynamicCache on
CacheLocalSizeLimit 25000
FRCAEnableFileCache On
FRCACacheLocalFileRunTime /cgidev/*.gif
#=======================================================================
==
# PART 2
#=======================================================================
==
Options +ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch +Includes
-MultiViews -Indexes
IdentityCheck Off
AlwaysDirectoryIndex off
DirectoryIndex index.html welcome.html
# The following directives regard the HTTP instance logs
# They are commented out. Uncomment them to have the logs generated
ErrorLog /cgidev/conf/logs/basic_error_log
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /cgidev/conf/logs/access_log Common
LogMaint /cgidev/conf/logs/basic_error_log 60 0
LogMaint /cgidev/conf/logs/access_log 30 0
LogLength 512000000
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
<Directory /cgidev/conf/htdocs>
Order Allow,Deny
Allow From all
</Directory>
#=======================================================================
==
# PART 3
#=======================================================================
==
#---- CGIDEV2 directives
AliasMatch /cgidev2h/(.*)\.htm
/QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/$1.mbr
AliasMatch /cgidev2o/(.*)\.htm
/QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1.mbr
AliasMatch /cgidev2oit/(.*)\.htm
/QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1.mbr
Alias /cgidev2/start /qsys.lib/cgidev2.lib/demohtml.file/demoframe.mbr
Alias /cgidev/ /cgidev/
Alias /cgidevf/ /cgidev/
Alias /cgidevexthtml/ /cgidevexthtml/
Alias /cgidev2/ /qsys.lib/cgidev2.lib/
Alias /cgidev2h/ /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/
Alias /cgidev2o/ /QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/
Alias /cgidev2oit/ /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/
ScriptAliasMatch /cgidev2p/(.*).cgi /qsys.lib/cgidev2.lib/$1.pgm
ScriptAliasMatch /cgidev2p/(.*) /qsys.lib/cgidev2.lib/$1
#=======================================================================
==
# PART 3
#=======================================================================
==
#---- CGIDEV2 directives
<Directory /cgidev>
AllowOverride None
Options None
order allow,deny
allow from all
</Directory>

<Directory /cgidevexthtml>
AllowOverride None
Options None
order allow,deny
allow from all
</Directory>

<Directory /QSYS.LIB/CGIDEV2.LIB>
AllowOverride None
Options None
order allow,deny
allow from all
</Directory>
#---- CITCGIDEV directives
AliasMatch /citcgidevh/(.*)\.htm
/QSYS.LIB/CITCGIDEV.LIB/HTMLSRC.FILE/$1.mbr
Alias /citcgidevh/ /QSYS.LIB/CITCGIDEV.LIB/HTMLSRC.FILE/
Alias /citcgidev/ /citcgidev/
ScriptAliasMatch /citcgidevp(.*).pgm /qsys.lib/citcgidev.lib/$1.pgm
<Directory /QSYS.LIB/CITCGIDEV.LIB>
AllowOverride None
Options None
order allow,deny
allow from all
</Directory>
<Directory /citcgidev>
AllowOverride None
Options None
order allow,deny
allow from all
</Directory>

And just incase it may help, here is the program.

**********************************************************************
* SET COMPILER OPTIONS
**********************************************************************
HOPTION(*NODEBUGIO:*SRCSTMT)
H BNDDIR('CGIDEVBND')
H DFTACTGRP(*NO)
**********************************************************************
* COPY BOOKS.
**********************************************************************
/COPY QCGIDEVCPY,PROTOTYPEB
/COPY QCGIDEVCPY,USEC
**********************************************************************
* FIELD DEFINITIONS.
**********************************************************************
D PATH S 1024A INZ(*BLANKS)

**********************************************************************

* START FREE FORM CALCS.

**********************************************************************



/FREE





CALLP CLRHTMLBUFFER();



PATH = '/citcgidev/htmlsrc/hellocgi.html';



CALLP GETHTMLIFS(PATH);



CALLP WRTSECTION('all');



CALLP WRTSECTION('*fini');


/END-FREE


And here is the html.

/$all
Content-type: text/html

<html>
<body>
Hello CGIDEV2
</body>
</html>



Thanks,


Terry Anderson



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx
[mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of
matt.haas@xxxxxxxxxxx
Sent: Tuesday, September 04, 2007 8:41 AM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] CGIDEV2 & Page not Found.


You're doing something that's keeping the data from being
translated to ASCII. The best thing to do would be to post a
sanitized version (make sure there are no user names,
passwords, IP addresses, or real host names) of your httpd.conf.

Matt



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.