[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cgi-bin
There's not much consistency here. Usually, cgi-bin
is put in the same directory as htdocs. Lately, I
have seen this in...
/srv/www
/usr/local/apache
...and other places. The location is specified in an
Apache configuration file. I have seen this in...
/etc/httpd/httpd.conf
/usr/local/apache/conf/httpd.conf
... and other places.
When you installed Apache, these directories were probably
created for you. You just have to find them. (htdocs is
typically where the .html files are kept.)
public_html you have to create, yourself, in your
home directory. httpd.conf has to be set up to
allow access to public_html.
It is generally not a good idea to set up cgi-bin directories
all over the place because of security reasons. For good
paranoi, use just one cgi-bin directory and keep all of your
Perl CGI code in that one directory.
Open and look at httpd.conf to see how to use httpd.conf.
The instructions are typically intermixed with the code.
--Chet
> HC>> Where on systems that store multiple users' web pages do sysops
> HC>> normally store cgi scripts? In fact, where do the sysops store
> HC>> the web pages?
>
> SP> That's entirely up to user preference and what access method you
> SP> make available to your customers.
>
>
> Sigh... This is going to be one of those nights... ;-)
>
> Ok, guys, this is my first struggle with Apache. I found the
> following in the Apache documentation.
> ______________________________________________________________________
> Question:
> How do I allow each of my user directories to have a cgi-bin
> directory?
>
> Answer:
> Remember that CGI execution does not need to be restricted only to
> cgi-bin directories. You can allow CGI script execution in arbitrary
> parts of your filesystem. There are many ways to give each user
> directory a cgi-bin directory such that anything requested as
> http://example.com/~user/cgi-bin/program will be executed as a CGI
> script. Two alternatives are:
>
> 1. Place the cgi-bin directory next to the public_html directory:
> ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2
>
> 2. Place the cgi-bin directory underneath the public_html directory:
> <Directory /home/*/public_html/cgi-bin>
> Options ExecCGI
> SetHandler cgi-script
> </Directory>
>
> If you are using suexec, the first technique will not work because CGI
> scripts must be stored under the public_html directory.
> ______________________________________________________________________
>
> I grok the question and the first paragraph of the answer. The two
> alternatives and the comment about suexec go WAY over my head. And
> there are no directories on my computer named "public_html. Can some
> one please translate into english?
>
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.
>
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.
- References:
- cgi-bin
- From: Harold Crouch <hcrouch@mchsi.com>
- Re: cgi-bin
- From: Steven Pritchard <steve@silug.org>
- Re: cgi-bin
- From: Harold Crouch <hcrouch@mchsi.com>