l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Feb 11 11:28

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] cgi-bin in user home dirs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] cgi-bin in user home dirs

--- Jeff Newmiller <jdnewmil@dcn.davis.ca.us> wrote:
> On Mon, 10 Feb 2003, Jim Angstadt wrote:
> > --- Tim Riley <timriley@timriley.net> wrote:
> > > Jim Angstadt wrote:
> > > > --- Tim Riley <timriley@timriley.net> wrote:
> > > > > Jim Angstadt wrote:
> > <snip>
> > > >
> > > > Thanks for the help.  I added both items to
> > > > httpd.conf and then restarted httpd.  Then I
> > > > keyed http://localhost/~ja/cgi-ja/test.cgi
> into
> > > > the browser location bar and got a "Not Found"
> > > > response.
> > > >
> > > 
> > > This is expected. CGI scripts are not intended
> to
> > > be called directly from the browser, instead
> they
> > > are executed from the HTML post operation
> > > located inside of a <FORM action="/cgi-ja/...">
> > > tag.

Thanks, Jeff and Micah, for the clarification on
"callable from a browser", nomenclature, and security
issues.  Please be assured I will carefully work with
my friend on security and cgi-bin placement.

But I still want to get it working, 
so here's where I am now:

/home/ja/cgi-bin  (perl cgi scripts go here)
/home/ja/public_html/fam  (the prinmary web site)
/home/ja/public_html/fun  (other fun stuff)

The httpd.conf file contains:

ScriptAlias  /cgi-ja/  "/home/ja/cgi-bin/"
<Directory "/home/ja/cgi-bin/">
    AllowOverride  None
    Options  None
    Order  allow,deny
    Allow  from all

httpd has been restarted.

http://localhost/~ja/cgi-ja/test.cgi is entered into
the browser location bar and "Not Found" is the

> In this case, I think the directory Tim suggested
> you put in the
> configuration file didn't correspond with the
> directory you had specified
> in your emails... (missing the "public_html" part),
> so your failure to get
> that working may have been due to a typo.

Yesterday I tried it both ways:
1. with cgi-bin under public_html and the appropriate
paths in httpd.conf
2. with cgi-bin under ja and appro. paths.
Neither worked.

Since then I have read, in a very old Apache msg, that
the cgi-bin should not go under public_html.  So, it
is under ja right now.

Today, I plan to recheck everything I did yesterday
and continue my Apache reading.  Any and all comments
will be greatly appreciated.

Thanks All,

Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.