Solved

CGI in BSDI Unix and Apache

Posted on 1997-07-30
1
204 Views
Last Modified: 2013-12-25
Hi,

Could someone please explain to me how I would go about giving access to cgi for different domains on a multi-hosting BSDI unix machine running Apache.

Actually, the problem is:  alhough I can point them to the /usr/var/www/cgi-bin directory, and the scripts will run fine, if I try to set up each individual domain with their own cgi-bin directory or cgi script files within their own directory, the script will not run.
I am specificaly trying to get the autocart software to run (www.autocart.com), unfortunately, their technicians could not help me out.

Please give me a hand.



0
Comment
Question by:nmoayedi
1 Comment
 
LVL 2

Accepted Solution

by:
n3mtr earned 20 total points
ID: 1829487
There are two ways to fix this.
1. make all files with extention .cgi executable as cgi-bins.
This is done by editing the server config file.  There is a section called add type; there should be an entry for cgi's that just needs to be uncommented.  if not it should look like this:
AddType application/x-httpd-cgi cgi

2. Give them each there own cgi directory.  In the configuration file where the virual host are defined put in a script alias for each of the domains. ex.
<VirtualHost www.experts-exchange.com>
...(stuff already here)
script alias /cgi-bin/ /actual/path/
</VirtualHost>

Comment back if you have any questions
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa‚Ķ
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to count occurrences of each item in an array.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now