Hi,
firstly, a couple of netiquet (I hate that word) points. It's
generally not a good idea to post to many lists at once, as this causes
duplicated and fragmented threads. The beginners-cgi is probably the
best of the two to use.
Secondly, this isn't really a perl question, but a web server question
- although we're not averse to answering those too, but you would get
better replies from a web server mailing list.
the /cgi-bin/ directory is actually an alias set up in the web server's
config file. On Apache, which you're running, this will be somewhere
in httpd.conf. This file will probably be in /etc/httpd/conf or
/usr/apache/conf, depending on which Linux distribution you're running
and how you installed Apache. If you are running virtual hosts, it
will probably be in the ...../conf/vhosts/Vhosts.conf.
This alias can point to any directory on Linux's filestore depending on
your apache and Linux permissions. Apache knows because it's a
ScriptAlias to run the file as a program rather than to simply send
it's contents to the browser.
There are plenty of good books and tutorials out there for Apache. I
suggest that you have a look, and do some reading - at least covering
the basics of Apache and Linux.
Gary
On Tuesday 05 June 2001 9:00 am, Exile wrote:
> Hi All,
>
> I 've try to write some CGI scripts, however, I have to put my
> scripts in cgi-bin..
> so... anybody tell me what is this?
>
> I mean.... anybody can tell me some concepts about redirect? My most
> problem is, I can't read write files in my home directory.
>
> The other case is , is that cgi-bin is not a real folder? Is that
> helpful to hide my
> scripts from users?
>
> Besides, is that the cgi script can be called globally within my
> account? such as, I can put <form action=/cgi-bin/myscrip.pl
> method=post> wherever?
--
Gary Stainburn
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000