You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jey <je...@rogers.com> on 2003/02/04 13:57:40 UTC

[users@httpd] Apache CGI Problems

Maybe this is a small problem for everyone but I am totally new to Apache and I got no help from FAQ or anything.

I store my hosts under C:\www\sitefolder
And their cgi-bin is C:\www\sitefolder\cgi-bin

Now any cgi-scripts run under the cgi-bin directory can access anything on the server. How can I possibly stop this? I don't want scripts running wild on my server.

Also is there a way to limit folder size in Apache?

Thanks,
Jey

Re: [users@httpd] Apache CGI Problems

Posted by Gary Turner <kk...@sbcglobal.net>.
Gary Turner wrote:

>Jey wrote:
>
>>Maybe this is a small problem for everyone but I am totally new to Apache and I got no help from FAQ or anything.
>>
<snip>
>
>You have your CGI directory under the Docroot.  This is a Bad Thing
>(tm). 

<snip some more>
>
>Check the syntax, I don't do Windows :)
[...]

I forgot to add; Please lose the HTML, and set word-wrap to a sane
value--72 columns is nice.
--
gt                          kk5st@sbcglobal.net
The problem with people who have no vices is
that they are sure to have annoying virtues.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache CGI Problems

Posted by Gary Turner <kk...@sbcglobal.net>.
Jey wrote:

>Maybe this is a small problem for everyone but I am totally new to Apache and I got no help from FAQ or anything.
>
>I store my hosts under C:\www\sitefolder
>And their cgi-bin is C:\www\sitefolder\cgi-bin
>
>Now any cgi-scripts run under the cgi-bin directory can access anything on the server. How can I possibly stop this? I don't want scripts running wild on my server.

You have your CGI directory under the Docroot.  This is a Bad Thing
(tm).  From here it is browseable.  Better you should put it at
c:\www\cgi-bin.  In the config file, do 

	ScriptAlias /cgi-bin/ c:\www\cgi-bin

Check the syntax, I don't do Windows :)

Windows is sloppy about ownership and permissions, so I don't know what
scripts can do.  At least getting them out of the browseable tree makes
it more difficult for the untrusted to peruse.
-- 
gt                                           kk5st@sbcglobal.net
"Well, you order it from the 'Society of Hardware and Information
Technology Helpers, Executive Administration Division' website -
you're a member aren't you?"--BOFH

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org