I don't use .htaccess files unless they're absolutely necessary (don't
have full admin access). As you've chosen this route though, are you
sure the file is readable by apache?
I presume the contents of your .htaccess aren't strung together like in
the post, and that your OE didn't see the <cr> it expects.
From the looks of your rule, when you do get it to fire, it will double
up /webmail if the user enters it on port 80. I use this:
RewriteRule ^/(webmail.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
which seems to work well.
--
-Eric 'shubes'
sysadmin wrote:
Sorry for the delay, been away from the office:
I can confirm there are NO VirtualHost definitions in apache
mod_rewrite is enable in the http.conf file
So , what I have read and did, is create a .htaccess file in the default
/var/www/html folder
it contains :
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$
https://mydominname.com/webmail/$1 [R,L]it does not work, i did try others
but cannot remember which
----- Original Message ----- From: "Eric Shubert" <[email protected]>
To: <[email protected]>
Sent: Friday, May 28, 2010 11:27 PM
Subject: [qmailtoaster] Re: Webmail SSL
Are you using VirtualHost definitions in apache? If so, see
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#vhosts
Will you post the mod_rewrite commands you were using that failed to do
what you wanted? I might be able to see whatever the problem is.
--
-Eric 'shubes'
madmac wrote:
I could not get any redirects to work on my qmail server:
So I forced ssl, by that I mean I modified the http.conf to listen on
80,
and 443
Made a defailt index.html for http, saying " nothing here: you must
go to
https://servername.com/webmail
Then sent a server wide email to the fact.
I will be later forcing pop3s and imapds, but need baby stems for the
users
As there is only One admin ( me ) I always go to
https://servername.com/qcontrol , just force of habit.
For those that rememeber some of my previous emails, I created a new VM
Image unsing Centos 5.4 ISO, I made it ( Hopefully ) ultra secure.
Link to it from Jake`s site ,http://iso.qmailtoaster.com/
or if the link is still down, download direct from my server
http://techyguru.com
If there is a working solution to get the correct redirect working, I
will add it to the VM Image and re-upload.
Thanks All
madmac
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]