<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.virusstyle.synology.me/index.php?action=history&amp;feed=atom&amp;title=Ubuntu%2FRoundCube_webmail_force_SSL</id>
	<title>Ubuntu/RoundCube webmail force SSL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.virusstyle.synology.me/index.php?action=history&amp;feed=atom&amp;title=Ubuntu%2FRoundCube_webmail_force_SSL"/>
	<link rel="alternate" type="text/html" href="https://wiki.virusstyle.synology.me/index.php?title=Ubuntu/RoundCube_webmail_force_SSL&amp;action=history"/>
	<updated>2026-04-21T12:40:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.virusstyle.synology.me/index.php?title=Ubuntu/RoundCube_webmail_force_SSL&amp;diff=109&amp;oldid=prev</id>
		<title>Kaspars: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.virusstyle.synology.me/index.php?title=Ubuntu/RoundCube_webmail_force_SSL&amp;diff=109&amp;oldid=prev"/>
		<updated>2026-04-16T08:41:33Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:41, 16 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-108:rev-109 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kaspars</name></author>
	</entry>
	<entry>
		<id>https://wiki.virusstyle.synology.me/index.php?title=Ubuntu/RoundCube_webmail_force_SSL&amp;diff=108&amp;oldid=prev</id>
		<title>Kaspars: Jauna lapa: &lt;div class=&quot;mw-parser-output&quot;&gt; == METHOD 1: ==  This method is the most recommended and it applies to any Linux distribution using both Apache or Nginx.  All you have to do is to go t...</title>
		<link rel="alternate" type="text/html" href="https://wiki.virusstyle.synology.me/index.php?title=Ubuntu/RoundCube_webmail_force_SSL&amp;diff=108&amp;oldid=prev"/>
		<updated>2018-08-29T05:57:22Z</updated>

		<summary type="html">&lt;p&gt;Jauna lapa: &amp;lt;div class=&amp;quot;mw-parser-output&amp;quot;&amp;gt; == METHOD 1: ==  This method is the most recommended and it applies to any Linux distribution using both Apache or Nginx.  All you have to do is to go t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;mw-parser-output&amp;quot;&amp;gt;&lt;br /&gt;
== METHOD 1: ==&lt;br /&gt;
&lt;br /&gt;
This method is the most recommended and it applies to any Linux distribution using both Apache or Nginx.&lt;br /&gt;
&lt;br /&gt;
All you have to do is to go to directory were roundcube is located &amp;gt;&amp;gt; config and edit file&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;defaults.inc.php&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Assuming that roundcube is installed in&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;/var/www/roundcube&amp;#039;&amp;#039;&amp;#039;, you will have this command:&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;sudo vi /var/www/roundcube/defaults.ing.php&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Now look for the following two lines and change from:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;$config[&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;&amp;#039;use_https&amp;#039;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;] = &amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;$config[&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;&amp;#039;use_https&amp;#039;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;] = &amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This method is the easiest and should work. However&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;if it is not working&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;(like in my case) you may want to try another approach. Please read bellow:&lt;br /&gt;
&lt;br /&gt;
== METHOD2 ==&lt;br /&gt;
&lt;br /&gt;
All what we do using this method is to redirect any HTTP traffic to our webmail to HTTPS directly from Apache web server! Please note that it works only if your server is powered by Apache!&lt;br /&gt;
&lt;br /&gt;
This is possible to do this directly from apache&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;.conf&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;file, but we will do it a little bit simple using an .htaccess file.&lt;br /&gt;
&lt;br /&gt;
All you have to do is to&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;create a .htaccess&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;file with the following content:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;RewriteEngine On&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;RewriteCond %{HTTPS} !=on&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;RewriteRule ^(.*)$ https:&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;//&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;%{HTTP_HOST}/$1 [R=301,L]&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;div style=&amp;quot;background:#eee;border:1px solid #ccc;padding:5px 10px;&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;lt;&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;/IfModule&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/div&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and place it on the root of roundcube directory, where php files are located. This will force any incoming request to use HTTPS instead of HTTP.&lt;br /&gt;
&lt;br /&gt;
That’s all, now you can read your emails a little bit more safe!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaspars</name></author>
	</entry>
</feed>