• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Web Mail

Webmail https

Hi,

Found this here in the forum, easiest solution:

-----------------------------------------------------
Ouote:

Open your webmail/horde/index.php file with your favorite editor. At the top of the page (after <?php) enter:

$page = "https://".$HTTP_SERVER_VARS['HTTP_HOST'];
if ($HTTP_SERVER_VARS['SERVER_PORT'] == "80") {
header("Location: ".$page);
}

save your file. test by pointing your browser to webmail: http://webmail.[domain.com]

Works for me. Should work for you.
------------------------------------------------------

Regards,
Bart
 
Thank's..... but the problem is no run under plain http.... the main question is how to move the horde to answer in other location not on the default webmail sub domain....

let me try post anoter example...

default >

http(s)://webmail.domain.com


new location >

http(s)://www.domain.com/webmail.

(the biggest problem is my very poor english :( )
 
Maybe ?

Hi,

Maybe you could use this ? But I think you have to modify it.

--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------

edit your /etc/httpd/conf/httpd.conf file and insert something like following right _before_ "Include /etc/httpd/conf/httpd.include" line:



code:--------------------------------------------------------------------------------
<VirtualHost NNN.NNN.NNN.NNN:80>
ServerName webmail.*
ServerAlias webmail.*
RewriteEngine on
RewriteRule ^/ https://%{SERVER_NAME}/ [R]
</VirtualHost>
--------------------------------------------------------------------------------


Where NNN.NNN.NNN.NNN needs to be replaced with the real server IP address where webmail.domain.com resolves to.
don't forget to restart Apache to reread configuration changes.
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------

Maybe you could use: RewriteRule ^/ http://%{SERVER_NAME}/ webmail/[R]
...or something like that, figure it out ;o)

Regards,
Bart
 
An easier fix would be to look into the .htaccess directives for Apache. If I'm not mistaken, webmail will open under https and http (secure and standard) protocols. Perhaps an .htaccess directive to load the webmail page when the /webmail direcotry is called would be a fix for what you need. If not, the users should still be able to login to webmail via the standard protocol.

Another fix would be to install a separate e-mail checking applications, such as SquirrelMail, UebiMiau, etc, in the domain itself. This would give the client more customization, allowing them to modify the files for their webmail. Horde, too, would be an option.

One such application exists in the Application Vault, if you have a license to use it. UebiMiau (page 2, app vault).
 
Thank´s for all... replies... I will try.

and forgive me for the rude "no one can find answer ??" I must write ..

Hi,

"some one find ?? "

TIA
 
i've tried both suggestions (modifying index.php and httpd.conf) and i get a timeout when trying to access webmail via https (this happens on both firefox and internet explorer). I enabled ssl when I configured my domain - is there anything else i need to do?
also, I assume EITHER of those methods should work - no need to do both (?)
 
Easiest way to force SSL may be use .htaccess file:

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

For Horde Imp with Plesk 7.1.5 the place for .htaccess is /home/httpd/vhosts/webmail
 
Back
Top