Helpful Information
 
 
Category: CGI Scripts / Perl
Multiple domains - multiple cgi-bin directories?

I am running one web site on WestHost, it uses

/var/www/html/ for the data

and

/var/www/cgi-bin/

for the cgi scripts.

I am going to add another domain, and I want that domain to use a separate cgi-bin directory. How can I establish another cgi-bin for that domain, and configure the domain to use that directory?

Thank you!

You would enter the details in the Virtual Server section of your Apache configuration.
Like:
ScriptAlias /cgi-bin /var/www/cgi-bin2

HTH

You would enter the details in the Virtual Server section of your Apache configuration.
Like:
ScriptAlias /cgi-bin /var/www/cgi-bin2

HTH

I think your right, But wouldn't you have to name the second cgi-bins like ScriptAlias /cgi-bin2 /var/www/cgi-bin2 or the script wouldn't know which one to use. This is actually a question?


Charlie

No, cause it would apply to that virtual server.
i.e.

http://domain1.com/cgi-bin = /var/www/cgi-bin
http://domain2.com/cgi-bin = /var/www/cgi-bin2

Disclaimer: I haven't tried this, but thats how I would do it.










privacy (GDPR)