?
Solved

CGI in BSDI Unix and Apache

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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

800 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