[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CGI in BSDI Unix and Apache

Posted on 1997-07-30
1
Medium Priority
?
238 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 80 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 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