2 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] Apache / SQWebmail / ...
FromSent OnAttachments
Peter SchrenkNov 24, 2004 1:35 pm 
Brian CandlerNov 25, 2004 12:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] Apache / SQWebmail / Virtual HostActions...
From:Brian Candler (B.Ca@pobox.com)
Date:Nov 25, 2004 12:59:00 am
List:net.sourceforge.lists.courier-sqwebmail

On Wed, Nov 24, 2004 at 10:35:34PM +0100, Peter Schrenk wrote:

is it possible, and if yes how, to run SQWebmail as virtual host using apache ?

You can, and since it's the same way you'd do this for any other CGI program, then this is not really a Sqwebmail question - it's an Apache question.

Right now the URL is [1]http://www.mydomain.com/cgi-bin/sqwebmail

I'd like it to be [2]http://webmail.mydomain.com

The only thing you'll need to beware of is that sqwebmail needs an images directory on the same virtual host, so if you map

http://somedomain/foo/bar to .../cgi-bin/sqwebmail/foo then you must still map http://somedomain/images/bar to .../data/images/bar

If you can't work out how to do that in Apache, then I recommend you simply create an index.html file containing a meta redirect to /cgi-bin/sqwebmail. Then when users go to http://webmail.mydomain.com/ it will redirect them to the right place immediately and they don't have to type the longer URL, although it will still appear in the navbar.

Brian.