Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Domains on ONE cgi-bin

Status
Not open for further replies.

leagion

MIS
Oct 9, 2000
2
US
I have a dedicated server running one main domain with multiple sub-domains (virtual domains). It was recently crossed over from an older server that had them all running the same cgi-bin...

As in was the same as
domain1.domain.org/cgi-bin/, domain.org/cgi-bin/ etc etc

Now I didn't set these servers up, I am taking over the job someone else did, who didn't leave a single bit of documentation about anything...

So, how do I configure the httpd.conf (right?) file to have all the domains load the same root cgi-bin?

Any help would be apreciated [sig][/sig]
 
One way to do it is to put a ScriptAlias in each of the <VirtualHost> blocks. So that if you wanted all domains to share /usr/local/apache/cgi-bin/ you would add this line to each VirtualHost block:

ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/

And you must make sure that the /usr/local/apache/cgi-bin/ directory has the proper permission (755 normally).

I am assuming that you are doing this on a Unix/Linux platform. The concept is different on Win32 I think and Im not real familiar with it.


Regards,
Gerald [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top