Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

APACHE: setting up cgi-bins for home Dirs in access.conf

Posted on 1999-06-29
3
Medium Priority
?
383 Views
Last Modified: 2013-12-15
my apache can read http://servername.dot/~username/
as the public_html in a user's directory, but it can't execute cgi scripts I had placed in the users /public_html/cgi-bin/ directory... how do I set that in access.conf?
0
Comment
Question by:rqs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
gunny051499 earned 200 total points
ID: 1629030
depending on whether you are using apache 1.2.x or 1.3.x you should no more set it in access.conf, but directly in httpd.conf. anyway, it could look something like:

#this is where you execute the cgi-scripts
<Directory /your/top/directory>
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order deny,allow
        Allow from all
</Directory>

#this is where your cgi-scripts actualy are
ScriptAlias /cgi-bin/ /your/path/to/cgi-bin/
<Directory /your/path/to/cgi-bin>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>

if you encounter any kind of problems, just look at apache's website <a href=http://www.apache.org>www.apache.org</a>. they have all the documentation you will need.
0
 
LVL 2

Author Comment

by:rqs
ID: 1629031
is this the same thing that I will use if I want to have multiple cgi-bin's in each of the
user home directories, which can be accessed with something like
"http://someserver.com/~username/cgi-bin/somescript.cgi"
0
 
LVL 4

Expert Comment

by:gunny051499
ID: 1629032
you could use multiple entries like:

ScriptAlias /~username1/cgi-bin/ /your/path/to/cgi-bin/
ScriptAlias /~username2/cgi-bin/ /your/path/to/cgi-bin/

also have a look at the ScriptAliasMatch at [http://www.apache.org/docs/mod/mod_alias.html#scriptaliasmatch], however i never tried this out, so i can't tell you exactly how it works (or: how to make it work with a single line for every "~user").
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question