--On Samstag, 21. Juli 2001 12:14 -0600 Andy Bradford <[EMAIL PROTECTED]>
wrote:
> Hello all,
>
> I have been struggling with getting Apache to do what I want it to do.
> Hopefully some of you will have already done this before and can
> offer pointers. I am trying to setup a VirtualHost, something like
> webmail.example.com, and have it automatically bring up the sqwebmail
> program. I have tried a number of things using Alias, ScriptAlias and a
> few other things like RewriteRule but have so far not found the right
> combination of options. I have read through the Apache documentation and
> not found anything that indicates how to run a CGI when requesting '/'
> (DocumentRoot essentially). Have any of you done this? If so, care to
> enlighten me, please? :-)
You cant call / as a cgi, but look at the DirectoryIndex:
<VirtualHost webmail.my.dom>
ServerName webmail.my.dom
ServerAlias *webmail.my.dom
DocumentRoot /wherever/sqwebmail/lives
<Directory /wherever/sqwebmail/lives
Options ExecCGI
Allow from All
AllowOverride None
DirectoryIndex /sqwebmail
<Files sqwebmail>
ForceType cgi-script
</Files>
</Directory>
</VirtualHost>
Roland