PDA

View Full Version : Multiple domains - multiple cgi-bin directories?



justinlinks
09-30-2003, 04:07 AM
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!

jalal
09-30-2003, 07:00 AM
You would enter the details in the Virtual Server section of your Apache configuration.
Like:
ScriptAlias /cgi-bin /var/www/cgi-bin2

HTH

REC-WH
09-30-2003, 08:59 AM
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

jalal
09-30-2003, 11:28 AM
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.