[users@httpd] Apache 2.0 and SSI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux