RE: Configuring Let's Encrypt for Sentora and Domains http://docs.sentora.org/?node=102
09-03-2016, 03:35 AM
You are getting the 500 error because their is no vhost entry for http for the panel login sub domain which would then redirect to https.
If you add this to the end of your custom virtual host for mydomain.com it should accept http://panel.mydomain.com and redirect it to https://
Sorry, but I do not have time to test it first.
There is also another way of doing this that is more proper, but it requires a bit more knowledge and editing files through SSH. If the above doesn't work, I'll walk you through how to do it using the proper method.
If you add this to the end of your custom virtual host for mydomain.com it should accept http://panel.mydomain.com and redirect it to https://
Code:
</VirtualHost>
<VirtualHost *:80>
ServerName panel.mydomain.com
DocumentRoot "/etc/sentora/panel/"
Redirect permanent / https://panel.mydomain.com
Sorry, but I do not have time to test it first.
There is also another way of doing this that is more proper, but it requires a bit more knowledge and editing files through SSH. If the above doesn't work, I'll walk you through how to do it using the proper method.