You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Barry H <me...@yahoo.com> on 2004/07/27 17:10:44 UTC

[users@httpd] SSI Question

Hello Folks,

I'm having trouble getting my server side includes to
execute. The server is seeing them as comments in the
html code.

Running:

Freebsd 4.9-RELEASE-p5 
Apache 1.3.29 

I have the following in my httpd.conf:

AddType text/html .shtml
AddHandler server-parsed .shtml
Options +Includes

and my SSI code looks like this:
<!--#exec cgi="/cgi-bin/foo.cgi" -->

I checked the FAQs and saw lot's of info on
configuring SSI, but nothing on this specific problem.

The Module to handle SSI's is loaded.

Thanks for your help.
Barry





		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] SSI Question

Posted by Joshua Slive <js...@gmail.com>.
On Tue, 27 Jul 2004 08:10:44 -0700 (PDT), Barry H <me...@yahoo.com> wrote:
> Hello Folks,
> 
> I'm having trouble getting my server side includes to
> execute. The server is seeing them as comments in the
> html code.

> I have the following in my httpd.conf:
> 
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> Options +Includes
> 
> and my SSI code looks like this:
> <!--#exec cgi="/cgi-bin/foo.cgi" -->
> 
> I checked the FAQs and saw lot's of info on
> configuring SSI, but nothing on this specific problem.
> 
> The Module to handle SSI's is loaded.

The most likely explanation is that your Options directive is not
applying to the relevant document because it is overriden elsewhere in
the config file.  See:
http://httpd.apache.org/docs/misc/FAQ.html#options

Also note that #include virtual should always be used in preference to
#exec cgi.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org