exec cgi server-side-includes in apache 0.8.14

exec cgi server-side-includes in apache 0.8.14

Post by Dwayne Jacques Fonten » Tue, 10 Oct 1995 04:00:00



hello,

Thanks for all the help on my last apache question (about running it as root).

Now I have another problem...we are changing over from the CERN server.
Since CERN does not do SSI, someone here wrote a perl script to fake it.

The perl script, in conjunction with CERN, allows SSI calls of the form:

<!--#exec cgi="/cgi-bin/my_cgi/foo/bar" -->    

(where my_cgi is the actual cgi script)

and passes along the path information to the CGI as one would expect.

Apache 0.8.14, however, gets confused with the above call. It does not allow
passing path information in this manner.

I suspect that Apache is right (compliant with the spec) while our other
system is not. So, I need to know the proper way to do what we were doing
before.

How do I pass information (args) to a CGI script in a server-side-include
using the exec cgi call?

Also, is there a way to disallow exec cmd calls while still allowing
exec cgi calls?

thank you for your time,

Dwayne Fontenot

 
 
 

exec cgi server-side-includes in apache 0.8.14

Post by Rob Hartil » Tue, 10 Oct 1995 04:00:00



> Also, is there a way to disallow exec cmd calls while still allowing
> exec cgi calls?

not yet.

 
 
 

exec cgi server-side-includes in apache 0.8.14

Post by David Robins » Fri, 13 Oct 1995 04:00:00



Quote:>...
>Now I have another problem...we are changing over from the CERN server.
>Since CERN does not do SSI, someone here wrote a perl script to fake it.

>The perl script, in conjunction with CERN, allows SSI calls of the form:

><!--#exec cgi="/cgi-bin/my_cgi/foo/bar" -->

>(where my_cgi is the actual cgi script)

>and passes along the path information to the CGI as one would expect.

>Apache 0.8.14, however, gets confused with the above call. It does not allow
>passing path information in this manner.

>I suspect that Apache is right (compliant with the spec) while our other
>system is not. So, I need to know the proper way to do what we were doing
>before.

>How do I pass information (args) to a CGI script in a server-side-include
>using the exec cgi call?

Apache is compatible with the NCSA 1.3 behaviour in this respect.
However, you can do what you want with apache:

<!--#include virtual="/cgi-bin/my_cgi/foo/bar" -->

Quote:>Also, is there a way to disallow exec cmd calls while still allowing
>exec cgi calls?

Not yet; but there may be in a future version.


 
 
 

1. Q : arguments for cgi exec server-side-includes ?

Hi,

I am using NCSA httpd 1.5
I would like to create a cgi script that take an argument and use it inside a page

I have tried :
        <!--#exec cgi="name?argument_name=value" -->
        <!--#exec cgi="name" argument_name="value" -->
        <!--#exec cgi="name/value" -->
        ...

None of these seems to work ?

Does anyone know if there is a way to pass arguments to included scripts?

=========

OSF Research Institute      2 avenue de Vignate      38610 Gieres - France
--
=========

OSF Research Institute      2 avenue de Vignate      38610 Gieres - France

2. Denial of Service attack INFO

3. Server Side Includes (Apache 0.8.14)

4. Apache server will not connect

5. NCSA 1.5 server side include/exec/cgi problem

6. Stopping auto-boot to xWindows

7. Apache 1.3.0 and Server Side Includes - #exec + parameter passing

8. LiveWire and Oracle Stored Procedures

9. Apache: can cgi output be parsed for Server-side includes?

10. Apache, Server Side Include: include

11. Disabling server side Includes for EXEC

12. NCSA 1.4 Server side include exec for users and security