Solved

CGI in BSDI Unix and Apache

Posted on 1997-07-30
1
218 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
[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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

733 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