You are missing a "/"
ScriptAliasMatch /cgiprdp/(.*).pgm /qsys.lib/cgiprd.lib/$1.pgm
 
Justin.
 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]On Behalf Of andrew_david_kerr
Sent: Friday, November 18, 2005 10:20 AM
To: [email protected]
Subject: [Easy400Group] Re: Apache migration (V5R1) : error ZSRV_MSG0107

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=""> 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 LINKS




Reply via email to