LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2003, 01:03 PM   #1
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
apache v2.0.44 + cgi ; securing cgi-support in apache


Is it possible to secure cgi in Apache v2.0.44 so that things like:

Code:
#!/bin/sh

echo Content-Type: text/plain
echo

cat /etc/passwd
simply don't work ?
I would like to restrict it to open only FILES IT OWNS and nothing else ... well the ideal situation would be setting a path on a virtual host basis where files could be accessed ... everything not being in that base path couldn't be accessed. Like path in the virtual host would be

/server/http/htdocs/www.example.com

and then files in the subpath of example.com can be accessed ... like for instance

/server/http/htdocs/www.example.com/example-dir/example-2ndsubdir/...

but files residing in

/server/http/htdocs/www.example.org

can't be accessed ...


Anybody has some kind of solution, hints, etc ?

Last edited by markus1982; 01-20-2003 at 01:12 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does apache support cgi scripts and how to run them abhis_mail2002 Fedora 3 03-15-2005 04:37 AM
apache and cgi hward Linux - Newbie 5 06-09-2004 03:53 AM
cgi with apache ApacheMan252 Linux - Software 27 02-26-2003 07:41 PM
apache-cgi j-ray Linux - Software 1 12-12-2002 03:31 PM
About cgi , pl. in apache.... raymond Linux - General 1 11-11-2002 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration