Connecting Tech Pros Worldwide Forums | Help | Site Map

Alt cgi-bin location for virtualhost domain

Adam Smith
Guest
 
Posts: n/a
#1: Aug 4 '08
Apache 2.x on FreeBSD running multiple virtual domains with one IP #

ScriptAlias defined in /usr/local/apache2/conf/httpd.conf
is =ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"

which is the default

I wished to define a proprietary cgi-bin for a specific single domain
which I defined within its virtual domain directive, but it did not work.
Could someone say what I am doing wrong.

<VirtualHost nnn.mmm.ppp.qqq:tttt>
---
---
<Directory /usr/www/vhosts/otherdomain.info/other/directories>
---
---
</Directory>

<Directory /usr/www/vhosts/otherdomain.info/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

---
</VirtualHost>

PS: I have tried with and without the trailing "/"

Closed Thread