On Wednesday, Dec 10, 2003, at 20:14 US/Central, <[EMAIL PROTECTED]> wrote:

Hi -

I've used Bill Shupp's Linux Qmail Toaster doc to setup QMail, VPopmail, etc. on my server. Great doc!

I have one name-based virtual host working perfectly with qmailadmin and sqwebmail.

What do I have to do to add the same functionality to a second (and third and fourth etc.) name-based virtual host without disabling the virtual host that already works? Neither the Linux Toaster doc nor the FreeBSD toaster doc is very clear on this topic. Adding domains is easy with vpopmail/vadddomain, and doing a separate install of qmailadmin seems to be just a matter of changing the parameters on ./configure. Is this also the case with sqwebmail?

I haven't found anything on this topic via Google, and I'd rather not experiment on a live server, so if anyone can point me to a resource that describes how to install sqwebmail to multiple name-based virtual hosts (and their /cgi-bin directories) without clobbering any hosts that are already working, I would greatly appreciate it.

Thanks!

John


As far as I know, all you have to do is install the sqwebmail CGI stub (in the current version it's a stub anyway, in previous versions the whole program minus authentication is in the CGI executable) by copying it into the various cgi-bin directories. Unless I'm missing something, there shouldn't be anything else that needs doing.


Well, nothing... except setting up SqWebMail's authentication system to handle email addresses from multiple domains. But that's covered reasonably well already in the documentation, I believe.

Of course, personally I'd simply install it in one place (for easier maintenance in the future) and ScriptAlias that folder into all the Virtual Hosts. But that's up to you. -- Personally, I use a shared CGI folder, but you can almost as easily set it up to use different folders per host... something like this (untested) might work in that case:

(in main server, to be inherited by all virtual hosts)
ScriptAlias /cgi-bin/shared/ /var/web/cgi-bin/

(in each virtual host)
ScriptAlias /cgi-bin/ /var/vhost/example.com/cgi-bin/
Redirect /cgi-bin/webmail http://example.com/cgi-bin/shared/webmail

Just drop the 'webmail' binary into the /cgi-bin/shared/ folder (i.e. /var/web/cgi-bin/ in the above example) and I think Apache will find it properly when requested via any of the following:

http://thishost1.com/cgi-bin/webmail
http://thathost2.org/cgi-bin/webmail
http://otherhost2.net/cgi-bin/webmail
http://thishost1.com/cgi-bin/shared/webmail
http://thathost2.org/cgi-bin/shared/webmail
http://otherhost2.net/cgi-bin/shared/webmail
...etc.

I'm not sure those directives are the right way to do it exactly, but I know I've seen something like that done before. And I think that's close to the way it was set up. Experiment some till you get it working. =)

Of course, if you don't *need* individual cgi-bin folders (as I don't), it's much simpler to just have one ScriptAlias directive that all the hosts use. 8)

-jab




Reply via email to