<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apache CGI &amp;amp; SSI in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108844#M731189</link>
    <description>&lt;!--!*#--&gt;&amp;gt; [...] I have to upgrade to Apache 2.0 and&lt;BR /&gt;&amp;gt; use the apache mod_include module [...]&lt;BR /&gt;&lt;BR /&gt;Presumably, you needed to enable mod_include&lt;BR /&gt;in 1.3.x, too, or else no "&lt;!--#include"&lt;BR /&gt;directive would work.&lt;BR /&gt;&lt;BR /&gt;However, I see in the 2.0 doc for mod_include:&lt;BR /&gt;&lt;BR /&gt;      Implemented as an output filter since&lt;BR /&gt;      Apache 2.0&lt;BR /&gt;&lt;BR /&gt;where "output" does make it sound as if&lt;BR /&gt;there's some hope.&lt;BR /&gt;&lt;BR /&gt;http://httpd.apache.org/docs/2.0/mod/mod_include.html--&gt;</description>
    <pubDate>Thu, 29 Nov 2007 13:42:33 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-11-29T13:42:33Z</dc:date>
    <item>
      <title>Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108837#M731182</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I created a html layout named mylayout in wich I include another file:&lt;BR /&gt;&lt;BR /&gt;&lt;!--#include file="testrob.txt"--&gt;&lt;BR /&gt;&lt;BR /&gt;When I load mylayout into my browser, the file testrob.txt is copied into mylayout. This works fine (so I guess my apache config settings are correct).&lt;BR /&gt;&lt;BR /&gt;I run a program inside a cgi script:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;echo Content-type: text/html&lt;BR /&gt;/mydir/myprog &lt;BR /&gt;&lt;BR /&gt;Inside myprog I display mylayout. However it does NOT include the file testrob.txt when I run the cgi script from my browser.&lt;BR /&gt;&lt;BR /&gt;Anyone have any idea why the include doesn’t work when using a cgi script?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance&lt;BR /&gt;Rob&lt;BR /&gt;&lt;BR /&gt;HP Unix 11i&lt;BR /&gt;Apache 1.3.19&lt;BR /&gt;Mozilla Firefox 2.0.0.10&lt;BR /&gt;Microfocus Server Express Cobol&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 08:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108837#M731182</guid>
      <dc:creator>Rob Daniels</dc:creator>
      <dc:date>2007-11-28T08:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108838#M731183</link>
      <description>I don't know what your scripts do, but I guess about a HTML syntax error in the final data stream.&lt;BR /&gt;&lt;BR /&gt;I would try to run the scripts "standalone" and inspect the HTML syntax.&lt;BR /&gt;&lt;BR /&gt;For example, if you have some tags like &lt;TABLE&gt; begin and end in a wrong order, the result could be very strange or invisible.&lt;/TABLE&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108838#M731183</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-11-28T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108839#M731184</link>
      <description>Hi Torsten,&lt;BR /&gt;&lt;BR /&gt;thank you for your reply.&lt;BR /&gt;The html layout I display in my program is the same layout as the one I directly "get" in my browser. So the difference is:&lt;BR /&gt;1. "get" the layout by enter the name in my browser address (include works)&lt;BR /&gt;2. "put" the (same) layout into my browser by using a program in my script (executed by enter the script name in my browser). In this case include doesn't work.&lt;BR /&gt;&lt;BR /&gt;Somehow include doesn't work when I display the layout using a program.&lt;BR /&gt;&lt;BR /&gt;There can't be a html error because I use exactly the same layout.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:45:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108839#M731184</guid>
      <dc:creator>Rob Daniels</dc:creator>
      <dc:date>2007-11-28T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108840#M731185</link>
      <description>I'll assume that you've used your browser to&lt;BR /&gt;inspect the actual HTML, and that you see the&lt;BR /&gt;comment "&lt;!--#include file="testrob.txt"--&gt;"&lt;BR /&gt;in there, rather than the content of&lt;BR /&gt;"testrob.txt", as you had hoped.  (That I&lt;BR /&gt;need to assume anything speaks ill of your&lt;BR /&gt;problem description, of course.)&lt;BR /&gt;&lt;BR /&gt;I know nothing, but I can _imagine_ that the&lt;BR /&gt;SSI work is done when Apache reads a HTML&lt;BR /&gt;source file.  CGI script/program output may&lt;BR /&gt;get put out directly, and not processed in&lt;BR /&gt;the same way as a file which must be read,&lt;BR /&gt;processed, and then put out.  If my&lt;BR /&gt;conjecture is true, then no one is trying to&lt;BR /&gt;interpret your "&lt;!--#include [...]&gt;"&lt;BR /&gt;comment/directive.--&gt;</description>
      <pubDate>Wed, 28 Nov 2007 10:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108840#M731185</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-28T10:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108841#M731186</link>
      <description>In a quick skim of the Apache doc for SSI,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/1.3/howto/ssi.html" target="_blank"&gt;http://httpd.apache.org/docs/1.3/howto/ssi.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;nothing conclusive leaped right out at me,&lt;BR /&gt;but I'm sticking with my earlier explanation&lt;BR /&gt;until something better comes along.&lt;BR /&gt;&lt;BR /&gt;Note that that doc does give an example of&lt;BR /&gt;"Including the results of a CGI program",&lt;BR /&gt;with which technique you might be able to&lt;BR /&gt;achieve the desired result in a somewhat&lt;BR /&gt;different way.</description>
      <pubDate>Thu, 29 Nov 2007 07:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108841#M731186</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-29T07:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108842#M731187</link>
      <description>&lt;!--!*#--&gt;Hi Rob,&lt;BR /&gt;&lt;BR /&gt;I haven't read your whole thread and the others' replies yet.&lt;BR /&gt;Also, without delving into server side includes,&lt;BR /&gt;I simply suspect that your CGI script violates the server's HTTP response.&lt;BR /&gt;The protocol demands a blank line "\r\n" or "\n" between header and body.&lt;BR /&gt;The path to myprog in your script follows immediately the HTTP header. &lt;BR /&gt;&lt;BR /&gt;For example, take Perl's CGI to look what a valid HTTP response header should look like&lt;BR /&gt;(note the empty line 2 that nl depicted)&lt;BR /&gt;&lt;BR /&gt;$ perl -MCGI=header -le 'print header'|nl&lt;BR /&gt;     1  Content-Type: text/html; charset=ISO-8859-1&lt;BR /&gt;     2  &lt;BR /&gt;       &lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2007 07:28:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108842#M731187</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-11-29T07:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108843#M731188</link>
      <description>Hi Steven &amp;amp; Ralph,&lt;BR /&gt;&lt;BR /&gt;According to someone in the apache forum I have to upgrade to Apache 2.0 and use the apache mod_include module to set up an output filter for SSI.&lt;BR /&gt;&lt;BR /&gt;Thank you for your feedback!&lt;BR /&gt;Rob&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Nov 2007 08:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108843#M731188</guid>
      <dc:creator>Rob Daniels</dc:creator>
      <dc:date>2007-11-29T08:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108844#M731189</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] I have to upgrade to Apache 2.0 and&lt;BR /&gt;&amp;gt; use the apache mod_include module [...]&lt;BR /&gt;&lt;BR /&gt;Presumably, you needed to enable mod_include&lt;BR /&gt;in 1.3.x, too, or else no "&lt;!--#include"&lt;BR /&gt;directive would work.&lt;BR /&gt;&lt;BR /&gt;However, I see in the 2.0 doc for mod_include:&lt;BR /&gt;&lt;BR /&gt;      Implemented as an output filter since&lt;BR /&gt;      Apache 2.0&lt;BR /&gt;&lt;BR /&gt;where "output" does make it sound as if&lt;BR /&gt;there's some hope.&lt;BR /&gt;&lt;BR /&gt;http://httpd.apache.org/docs/2.0/mod/mod_include.html--&gt;</description>
      <pubDate>Thu, 29 Nov 2007 13:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108844#M731189</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-11-29T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Apache CGI &amp; SSI</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108845#M731190</link>
      <description>I agree to Ralph, I used in my scripts this line (note this is tcl):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/tclsh &lt;BR /&gt;&lt;BR /&gt;puts "Content-type:text/html\n\n"&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Note the two "\n\n"!&lt;BR /&gt;You need to add new lines too.</description>
      <pubDate>Thu, 29 Nov 2007 13:57:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache-cgi-amp-ssi/m-p/4108845#M731190</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-11-29T13:57:43Z</dc:date>
    </item>
  </channel>
</rss>

