You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Scott Sherwood <ma...@shawus.com> on 2002/07/10 16:42:16 UTC
CGI Script Access
Hi.
I'm running Mandrake Linux 8.1 and Apache 1.3.20.
I want to allow my users to create their own CGI directories, and run their own CGI scripts. I did some research, and found the following on simplythebest.net:
If you have attempted to install the cgi-bin directory outside of the typical cgi-bin location are having a problem viewing the scripts in your browser, you may need a .htaccess file to be placed in the directory you're attempting to use to execute the scripts. This is for people using Apache web servers whose hosts will not allow them to run cgi scripts outside of their main cgi-bin folder. This .htaccess file will override the server and allow you to run the scripts from within any directory. Put these two lines in a TXT file and name it .htaccess, then upload it to the directory you wish to use for executing scripts.
Options +ExecCGI
AddHandler cgi-script .cgi
This doesn't seem to work. I get an error saying I have an internal server error when I try to access the user's own cgi-bin directory. So I did some more searching and found the following in my commonhttpd.conf file:
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
AddHandler cgi-script .cgi
So this should all work together, right? What am I missing?
Scott
Re: CGI Script Access
Posted by Sander Holthaus - Orange XL <in...@orangexl.com>.
Turning on CGI's outside of the cgi-bin is a major security risk. What you
are missing is probably the execute flags on the files.
----- Original Message -----
From: "Ranganadh" <ti...@yahoo.co.in>
To: <us...@httpd.apache.org>
Sent: Wednesday, July 10, 2002 4:59 PM
Subject: Re: CGI Script Access
> hi,
>
> you are missing one thing.The procedure is clearly
> given in the apache.org site.
>
>
http://httpd.apache.org/docs/howto/cgi.html#cgioutsideofscriptaliasdirectori
es
>
>
> try it and mail me what happened.
>
> regards
> Ranganadh
>
>
>
> --- Scott Sherwood <ma...@shawus.com> wrote: >
> Hi.
> >
> > I'm running Mandrake Linux 8.1 and Apache 1.3.20.
> >
> > I want to allow my users to create their own CGI
> > directories, and run their own CGI scripts. I did
> > some research, and found the following on
> > simplythebest.net:
> >
> > If you have attempted to install the cgi-bin
> > directory outside of the typical cgi-bin location
> > are having a problem viewing the scripts in your
> > browser, you may need a .htaccess file to be placed
> > in the directory you're attempting to use to execute
> > the scripts. This is for people using Apache web
> > servers whose hosts will not allow them to run cgi
> > scripts outside of their main cgi-bin folder. This
> > .htaccess file will override the server and allow
> > you to run the scripts from within any directory.
> > Put these two lines in a TXT file and name it
> > .htaccess, then upload it to the directory you wish
> > to use for executing scripts.
> >
> > Options +ExecCGI
> > AddHandler cgi-script .cgi
> >
> >
> > This doesn't seem to work. I get an error saying I
> > have an internal server error when I try to access
> > the user's own cgi-bin directory. So I did some more
> > searching and found the following in my
> > commonhttpd.conf file:
> >
> > # If you want to use server side includes, or
> > CGI outside
> > # ScriptAliased directories, uncomment the
> > following lines.
> > #
> > # To use CGI scripts:
> > #
> > AddHandler cgi-script .cgi
> >
> > So this should all work together, right? What am
> > I missing?
> >
> > Scott
> >
>
> ________________________________________________________________________
> Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
> visit http://in.autos.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: CGI Script Access
Posted by Ranganadh <ti...@yahoo.co.in>.
hi,
you are missing one thing.The procedure is clearly
given in the apache.org site.
http://httpd.apache.org/docs/howto/cgi.html#cgioutsideofscriptaliasdirectories
try it and mail me what happened.
regards
Ranganadh
--- Scott Sherwood <ma...@shawus.com> wrote: >
Hi.
>
> I'm running Mandrake Linux 8.1 and Apache 1.3.20.
>
> I want to allow my users to create their own CGI
> directories, and run their own CGI scripts. I did
> some research, and found the following on
> simplythebest.net:
>
> If you have attempted to install the cgi-bin
> directory outside of the typical cgi-bin location
> are having a problem viewing the scripts in your
> browser, you may need a .htaccess file to be placed
> in the directory you're attempting to use to execute
> the scripts. This is for people using Apache web
> servers whose hosts will not allow them to run cgi
> scripts outside of their main cgi-bin folder. This
> .htaccess file will override the server and allow
> you to run the scripts from within any directory.
> Put these two lines in a TXT file and name it
> .htaccess, then upload it to the directory you wish
> to use for executing scripts.
>
> Options +ExecCGI
> AddHandler cgi-script .cgi
>
>
> This doesn't seem to work. I get an error saying I
> have an internal server error when I try to access
> the user's own cgi-bin directory. So I did some more
> searching and found the following in my
> commonhttpd.conf file:
>
> # If you want to use server side includes, or
> CGI outside
> # ScriptAliased directories, uncomment the
> following lines.
> #
> # To use CGI scripts:
> #
> AddHandler cgi-script .cgi
>
> So this should all work together, right? What am
> I missing?
>
> Scott
>
________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit http://in.autos.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org