Directadmin ssl - cluster

dareksbs

Verified User
Joined
May 15, 2014
Messages
40
Hi,

How I can add my ssl certificate to my directadmin server ? I want to be able to connect to roundcube only using https protocol, and I want to be able to setup my email client to use https access.

Also is it possible to have a mail server on the different server ?

and how the cluster works with DNS server ? everything that is on master going to slave ?

I want to fully cluster my DNS, Mail, and web server, is it possible to do this with directadmin ? if not is it better to for example setup webmin on NS1, NS2 pointing to directadmin (web server), and MX record to mail server ?

Thanks
 
Unfortunately none of the above links say a thing about limiting roundcube to ssl only connections, which is something I'd like for one of my clients as well.

I know how to create .htccess rules for the same directory and lower directories, but I don't want to protect /var/www/html, only /var/www/html/roundcube. And I don't want to need to re-do it every time roundcube updates.

Have you (has anyone) got some .htaccess rules to put in /vart/www/html/ which will protect roundcube in this way?

Thanks.

Jeff
 
Have you (has anyone) got some .htaccess rules to put in /vart/www/html/ which will protect roundcube in this way?

Step 3 here http://help.directadmin.com/item.php?id=351

Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Put your mod_rewrite rules into /etc/httpd/conf/extra/httpd-includes.conf or in /etc/httpd/conf/extra/httpd-custom.conf (and include /etc/httpd/conf/extra/httpd-custom.conf in /etc/httpd/conf/extra/httpd-includes.conf). Use <Location ...> or <Directory ...> set.
 
Thanks, Alex. Since this client managtes his own server I've passed the information over to him to decide if he wants to do it or wants me to do it for him.

Jeff
 
Step 3 here http://help.directadmin.com/item.php?id=351

Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Put your mod_rewrite rules into /etc/httpd/conf/extra/httpd-includes.conf or in /etc/httpd/conf/extra/httpd-custom.conf (and include /etc/httpd/conf/extra/httpd-custom.conf in /etc/httpd/conf/extra/httpd-includes.conf). Use <Location ...> or <Directory ...> set.

so I can just add
<Directory />
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</Directory>

to /etc/httpd/conf/extra/httpd-includes.conf and after a reboot everything should work ? (I put "/" because I am not sure where is roundcube on directadmin)
 
Back
Top