Some additional information to my original post. It would appear as if my program is not even being called. I had turned on CGIDEBUG this morning and got nothing written to the debug file. Having recompiled my program I can see that the new program object has not even been used.
I use the URL http://999.999.99.9:8742/cgiprdp/prdjour.pgm My CGI related directives look like AliasMatch /cgiprdh/(.*)\.htm /QSYS.LIB/CGIPRD.LIB/HTMLSRC.FILE/ $1.mbr Alias /cgiprdh/ /QSYS.LIB/CGIPRD.LIB/HTMLSRC.FILE/ Alias /cgiprd/ /cgiprd/ ScriptAliasMatch /cgiprdp(.*).pgm /qsys.lib/cgiprd.lib/$1.pgm <Directory /QSYS.LIB/CGIPRD.LIB> AllowOverride None Options None order allow,deny allow from all </Directory> <Directory /cgiprd> AllowOverride None Options None order allow,deny allow from all </Directory> As I said below, everything still works fine calling the program from the 'original' HTTP server. Any ideas? --- In [email protected], "andrew_david_kerr" <[EMAIL PROTECTED]> wrote: > > That steep learning curve just got steeper... > > Have created my Apache served instance and it serves static pages > fine, but when calling a CGI program I get the following in the log > file > > ZSRV_MSG0107: Premature end of script headers: File name is > PRDJOUR.PGM > > I had shifted my HTML to the IFS and verified that it had the > necessary blank lines after the headers (seemed to have been a > problem mentioned often on the forum), changed my RPG to use > gethtmlif and confirmed that it still works from the 'original' HTTP > server. HTML looks like > > /$top **** START HTML > Content-type: text/html > > > <html> > > > <head><title>Production Journalière</title></head> > <body> > <div><Img Src="/cgiprd/XXXXX.GIF"> Production Journalière: /% > CHGDAT%/</div> > <br> > > /$none **** NO RECORDS IN FILE > <div>Aucun enregistrement a trouvé</div> > > /$tabstr **** START TABLE (SOME RECORDS IN FILE) > <table border=1 cellspacing=5> > <th>Code</th> > <th>Désignation</th> > <th>QTEPCK</th> > <th>MTTRQT</th> > > /$tabrow **** TABLE ROW (LIKE A SUBFILE LINE) > <tr><td>/%Code%/</td> > <td>/%Desc%/</td> > <td align=right>/%QTEPCK01%/</td> > <td align=right>/%MTTRQT01%/</td> > </td></tr> > > /$tabend **** END TABLE (SOME RECORDS IN FILE) > </table> > > > /$end **** END HTML > <br><br> > </body></html> > > My config file has been amended to allow the running of CGI. I used > the CGIDEV2/SETCGLIB to add the appropriate directives. Otherwise it > is unchanged since message 6860. > > Anyone have any ideas? Is there somewhere else I should be looking > for details of errors? > > Thanks Andrew > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/wbFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Easy400Group/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
