LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-24-2003, 03:28 PM   #1
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Rep: Reputation: 15
apache 2.0 user cgi-bin directories


I am trying to set up a web server on Redhat 8.0 where each user can have a directory of web pages in their home directory. I have it set up so that apache can get pages from the public_html directory and that works.

What I am working on now is letting each user have a cgi-bin directory in their home directory as well. I have tried a number of things but am kind of stumped.

First of all, I am not sure whether the cgi-bin directory should be directly in the home directory or in the public_html subdirectory.

What is the best way to do that? What settings in /etc/httpd/conf/httpd.conf do I have to use to enable this?
 
Old 01-27-2003, 02:10 PM   #2
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Original Poster
Rep: Reputation: 15
This should be easy, but I can't figure it out... help?
 
Old 03-19-2003, 02:42 AM   #3
frank_abacus
LQ Newbie
 
Registered: Jan 2003
Distribution: Slackware
Posts: 5
Blog Entries: 1

Rep: Reputation: 0
Take a look at http://httpd.apache.org/docs-2.0/how...lic_html.html. It worked for me. I had to change my version to the following...

#
# Got this from http://httpd.apache.org/docs-2.0/howto/public_html.html
<Directory /home/*/public_html/cgi-bin/>
Options ExecCGI
SetHandler cgi-script
</Directory>

Hope this helps.

/Frank
 
Old 03-19-2003, 03:58 PM   #4
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Original Poster
Rep: Reputation: 15
Thanks,
I had seen that web page when I posted the original, but still couldn't get it to work. I had that line, but it still wasn't doing what I wanted it to. What I ended up having to do is put a "ScriptAlias" line for each user that was to have a script directory. I couldn't figure out any general way to do that, so I just put a line for all the users.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache cgi-bin default directories Mankind75 Mandriva 1 07-05-2004 09:22 AM
configuring cgi-bin in apache gtgoku Linux - General 1 01-19-2004 06:22 AM
.htaccess and cgi-bin (apache of course) finegan Linux - Software 4 05-01-2003 04:21 PM
no access to cgi-bin within Apache Mackeral Linux - Software 6 05-14-2002 05:15 AM
apache cgi-bin roadie Linux - General 6 06-16-2001 07:15 PM


All times are GMT -5. The time now is 10:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration