On Tue, Jan 11, 2000 at 07:47:27PM +0000, Albert White wrote:
> You mean to have
> www.blah.ie/~username/cgi-bin/script.cgi ?
> Might be possible but I've never seen it.
>> A possible solution might be to use cgi-wrap (ftp://ftp.umr.edu/pub/cgi/cgiwrap> /).
...Or you could learn about howto use Apache ;)
I added this to Redbrick's httpd.conf
ErrorDocument 404 /index.html
My home directory on Redbrick is
so /home/*/*/*/*/gonk is intended to point
at anybodys gonk directory under their public_html directory.
Basically, I'm pointing anybody who goes to www.redbrick.dcu.ie/~singer/gonk
and tries to get a non-existent filename, they'll be redirected to Redbrick's
wonderful main page. This is a pointless and trivial example. Check it out
though, it works. (And indeed will work for all users on Redbrick... Nobodies
got a ~/public_html/gonk directory on the system asides from me though :) )
What you want to do is restrict users CGI to within their
~/public_html/cgi-bin directory, yes?
This'd work on Redbrick.
Turn off CGI for users, but add this to httpd.conf
Options ExecCGI Includes Indexes FollowSymLinks
Also, Suexec, which has been shipping with Apache for yonks now, will happily
execute CGI scripts as the user who owns them. It is stable and secure, and
follows a nicely strict ruleset.
"We've uniformly rejected all letters and declined all discussion upon the
question of when the present century ends, as it is one of the most absurd that
can engage the public attention, and we are astonished to find it has been the
subject of so much dispute, since it appears plain. The present century will
not terminate till January 1, 1801, unless it can be made out that 99 are 100.
It is a silly, childish discussion, and only exposes the want of brains of
those who maintain a contrary opinion to that we have stated"
- The Times, 26 December 1799
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!