> Here's the challenge:
> ---------------------------
> When I open this URL:
>
> http://cvsup.wingnet.net/cgi-bin/sqwebmail-alt-template
>
> I want to set the SQWEBMAIL_TEMPLATEDIR environment variable
> and launch sqwebmail.
This is really an Apache question, but...
You can certainly do this with mod_rewrite. (I do something similar, except
I have a complete virtual hosting config based on mod_rewrite, with no
<VirtualHost> entries)
You can probably also do it with something like:
ScriptAlias "/cgi-bin/sqwebmail-alt-template" "/path/to/sqwebmail"
<Location /cgi-bin/sqwebmail-alt-template>
SetEnv SQWEBMAIL_TEMPLATEDIR /x/y/z
</Location>
or:
SetEnvIf Request_URI "/cgi-bin/sqwebmail-alt-template$" SQWEBMAIL_TEMPLATEDIR=/x/y/z
You can avoid the ScriptAlias bit by just making a hard link from sqwebmail
to sqwebmail-alt-template in your cgi-bin directory.
If you can't get it to work, ask on an Apache mailing list.
Regards,
Brian.