[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [afnog] Sqwebmail Configuration



On Fri, Jul 18, 2003 at 09:29:00AM -0700, Niran Bello wrote:
> 
> Hi all
> I configured exim, pop3 and Sqwebmail in my network
> but i want to configure my login page too.
> I can login with
> http://myhost.mydomain/cgi-bin/sqwebmail but am i want
> a situation that I will be able to login  with
> http://myhostname.mydomain/ alone/

Simplest solution: create an index.html in the top level of your webserver
document tree, which issues a redirect to the correct URL: something like

<html>
<head>
<meta http-equiv="refresh" content="0; url=/cgi-bin/sqwebmail">
</head>
<body>
<p>If your browser does not refresh automatically, please
<a href="/cgi-bin/sqwebmail">click here</a> to continue</p>
</body>
</html>

Then if someone goes to http://myhostname.mydomain/ their browser will be
directed to the right place automatically. Is that sufficient?

You can map a more friendly URL to sqwebmail, e.g.
   http://myhostname.mydomain/webmail

by using ScriptAlias:

ScriptAlias "/webmail" "/usr/local/apache/cgi-bin/sqwebmail"

But it's not a good idea to map the root directory to a CGI, because you
also need to be able to serve files from the /images/ directory.

Regards,

Brian.
__________________________________________________
This is the Africa Network Operators' Group(AfNOG) 
technical discussion list.
The AfNOG website is: <http://www.afnog.org>