On Sat, 21 Jul 2001, Roland Schneider wrote:
> 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>
here's how i'm doing it at work...
our users go to the address http://webmail.kua.net/ and they immediately
get re-directed to https://services.kua.net/webmail/ (which is where
sqwebmail actually runs.)
<VirtualHost 209.26.178.8:80>
ServerName webmail.kua.net
ServerAlias www.webmail.kua.net
RedirectMatch .* https://services.kua.net/webmail/
</VirtualHost>
the SSL-only site "services.kua.net" is where we put anything user-related
that needs to be secure- webmail, password changing, and some other stuff
that our users have asked for.
<IfDefine SSL>
...
<VirtualHost 209.26.178.8:443>
ServerName services.kua.net
...
ScriptAliasMatch ^/webmail(.*) /www/services.kua.net/webmail/code/sqwebmail$1
Alias /images-webmail/ /www/services.kua.net/webmail/images/
...
ScriptAliasMatch ^/password(.*) /www/services.kua.net/password/code/password.cgi$1
Alias /images-password/ /www/services.kua.net/password/images/
...
</VirtualHost>
...
</IfDefine>
note that our users do not change their password through sqwebmail- i've
got my own password-change interface that also changes their password in
radius and does some other things. it also allows virtual-domain users to
change their vpopmail passwords as well- i'm using vpopmail for about 150
client domains on the same server, and sqwebmail works just as well for
the virtual-domain clients.
i've also got POP3 and IMAP4 servers (courier-imap) on the same machine,
and they also work for both dialup users (real userid's on the server) and
virtual users. how? one word... "userdb".
i'm sure most of you have seen sam's messages to the list, telling you
over and over to read the documentation... he means exactly what he says.
take care all.
----------------------------------------
| John Simpson Programmer at Large |
| <[EMAIL PROTECTED]> http://www.jms1.net/ |
----------------------------------------