Just an update.
I managed to get it to redirect all /webmail requests to
https://domain/webmail by a few changes in my squirrelmail.conf file.
Contents of file:
#----------------------------------<snip>-------------------------------------------------
<IfModule mod_alias.c>
Alias /webmail /usr/share/squirrelmail
</IfModule>
<Directory "/usr/share/squirrelmail">
RewriteEngine on
Options +FollowSymLinks
Order allow,deny
allow from all
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</Directory>
#-----------------------------------<snip>-------------------------------------------------
Now, (separate from this), I need to figure out how to (easily) have all
the virtual domains display the proper domain (instead of the document
root) if someone types https://domain. Something to do with the vhost
config in ssl.conf I presume. Another night.
South Computers wrote:
Thanks Sebastian. Not sure what you mean by location based (?)
Sebastian Grewe wrote:
Do a location based redirect? Shouldn't that also work outside a
vhost configuration and hence be valid for everything?
Cheers,
Sebastian
On 07.01.2013, at 05:06, South Computers <i...@southcomputers.com>
wrote:
First, Happy New Year all!
Just put a new toaster online, replacing one I've had up for about 7
years. Went mostly smoothly, except for the http side of stuff.
Pardon me for rehashing anything that's be brought up recently,
haven't had the time to keep up lately.
Anyway, getting the ever popular "You must be logged in to access
this page" in squirrelmail intermittently, so in doing some digging,
I fidn it is most likely a a sessions problem. Apparently sqmail
wants to use "Encrypted connections only" cookies out of the box, so
I try logging in with https, and sure enough, all works well every
time (so far anyway).
Which leads me to search for an easy way to force my /webmail httpd
alias to force everything to use https. I find the secure_login
plugin on the sqmail site, and go looking for the plugins dir.
Appears to be missing in the current build. No worries. I copy it
from another box, put it on the new box, and enable the secure_login
plugin. It still has issues apparently, so I disabled it again.
So.... just an fyi that sqmail plugins directory appears to be
missing in the current packages.
And, back to the main issue. Anyone have an easy way to force a
redirect to https for the /webmail alias without having to do each
domain individually, or a bunch of rewrites/htaccess work?
Thanks!
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail:
qmailtoaster-list-h...@qmailtoaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com