l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
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.
<snip>

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
/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
</Directory>

httpd has been restarted.

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

> 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.
<snip>

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,
Jim

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
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.