You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bill Richards <wi...@aewa.org> on 2005/04/30 22:25:54 UTC
[users@httpd] Apache 2.0 and SSI
I cannot seem to get SSI to work correctly with apache 2.0
I am trying to run a simple shell script from the main
index.html page. The SSI directive looks like this:
<!--#exec cgi="/home/mysite/cgi-bin/sponsor.cgi" -->
Note: I have replaced my site name with "mysite"
sponsor.cgi is a simple bash shell script to display the
current sponsors name. My server section of the
/etc/httpd/conf/httpd2.conf file looks like this:
<VirtualHost www.mysite.com>
DocumentRoot /home/mysite/http
<Directory "/home/mysite/http">
allow from all
Options +Indexes
</Directory>
ScriptAlias /cgi-bin/ /home/mysite/cgi-bin/
<Directory "/home/mysite/cgi-bin">
Allow from all
Options +ExecCGI +Includes
</Directory>
ServerPath /home/walist/http
ServerName www.mysite.com
</VirtualHost>
I can call the script via a direct url to
http://www.mysite.com/cgi-bin/sponsor.cgi
But when going to the main index.html it
does not work. Also in the process of
troubleshooting I broke the eight.cgi
picture gallery script so that it no longer
works. I hope someone can clue me into
what I am doing wrong. I would really
appreciate some help
Bill Richards
OKC, OK.
---------------------------------------------------------------------
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] Apache 2.0 and SSI
Posted by Joshua Slive <js...@gmail.com>.
On 4/30/05, Bill Richards <wi...@aewa.org> wrote:
> But when going to the main index.html it
> does not work. Also in the process of
> troubleshooting I broke the eight.cgi
> picture gallery script so that it no longer
> works. I hope someone can clue me into
> what I am doing wrong.
Not unless you do a much better job defining what you mean by "it does
not work". What exactly do you get in the browser? What is in the
error and access logs? What if you request the CGI script directly,
rather than via the SSI page?
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