Re: using orielly "cgrep" in cgi under Apache
Quoting Ken Gaugler (keng@wco.com):
> The scrip on my ISP runs fine. Trying to run it on my Linux box
> gives no apparent output when calling from the web browser. If i
> just run the cgi script from the command line, the script works
> as expected. I suspect the problem may be that the httpd cannot
> execute the cgrep program. Any ideas how to figure what is
> going on?
Depending on whatever httpd you're running, think about something along
these lines for the Apache:
[httpd.conf]
RewriteEngine On
RewriteRule ^/~ankh/$ /home/www/ankh/index.cgi
RewriteRule ^/~ankh/([^/]*)\.html$ /home/www/ankh/$1.cgi
(just an example, I guess you should see what is to change.)
[access.conf]
<Directory /home/www/ankh>
Options All
AllowOverride All
AddType image/jpeg jpeg
SetHandler cgi-script
<Limit GET POST>
order deny,allow
deny from domain1
allow from domain2
allow from domain3
</Limit>
</Directory>
Just basic stuff, look up your fine manual you sure have on your system. A
point would have been what server you have running (you seem to have one,
otherwise you could not have tested it on your machine).
HTH,
Alexander
--
Tech support is a fine art which, once mastered, virtually ensures
loss of sanity. Joe Thompson <joe@cstone.net>
Reply to: