[thelist] Configuring Apache virtual host path to own cgi-bin

Daniel J. Cody djc at members.evolt.org
Mon Nov 5 16:50:40 CST 2001


Hey George -

Inside your <virtualhost> directive for mydomain.com, add something like 
this:

ScriptAlias /cgi-bin/ "f:\www\mydomain.com\cgi-bin\"

That should get you what you want :)

Shout if it doesn't..

.djc.

George Dillon <> Evolt! wrote:

> I'm sure this is dead simple, but it's had me stumped for months... so any
> help would be much appreciated.
> 
> I'm trying (again) to get CGIs working locally using Apache and ActivePerl,
> and I'm almost there this time...
> 
> So far I have set up a virtual host 127.0.0.3 with root "f:/www/testsite3"
> 
> If I call a cgi (e.g. "hello.cgi" from
> http://127.0.0.3/testsite3/cgitest.shtml )
> my error.log indicates that Apache is looking for the cgi in "E:\Program
> Files\Apache Group\Apache\cgi-bin" (and if I put it in that directory it
> works fine)
> 
> I want each virtual directory to have its own cgi-bin, so in the case above
> I want Apache to look in "F:\www\mydomain.com\cgi-bin"
> 
> How do I set this up?






More information about the thelist mailing list