httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Selmer Ausland <sel.ausl...@shawcable.com>
Subject [users@httpd] New Thread: CGI outside of ScriptAlias directories
Date Thu, 17 Apr 2003 03:11:57 GMT
Hello Group;

    I have customers who have a VirtualHost but don't have their own
domain name. 

I have created dns entries for them like "user.my-domain.com" for use
with url http://www.mydomain.com/theirdirectory/ to facilitate use of
VirtualHost.

How can I set up a cgi-bin for them? The following does not work with
VirtualHost without a domain name.

ScriptAlias /global-cgi-bin/ "D:/Apache2/cgi-bin/"

AddHandler cgi-script cgi pl

<VirtualHost *>
     ServerAdmin webmaster@mydomain.com
     DocumentRoot "D:/Apache2/htdocs/userdirectory"
     ServerName user.mydomain.com
     ServerAlias user.mydomain.com
     ScriptAlias /cgi-bin/ "D:/Apache2/htdocs/userdirectory/cgi-bin/"
<Directory "D:/Apache2/htdocs/userdirectory">
     Options Indexes
     AllowOverride AuthConfig Options Fileinfo
     Order Allow,Deny
     Allow from all
</Directory>
</VirtualHost>

Once again, any help would be appreciated.

Thanks. Selmer Ausland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message