Solved

CGI in BSDI Unix and Apache

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
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 …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

809 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