RE: Secure Sentora Login with Let's Encrypt
06-15-2016, 09:01 PM
(This post was last modified: 06-15-2016, 09:41 PM by LaxeDLL.)
(04-22-2016, 03:09 PM)TGates Wrote: You need to add a .htaccess entry (in the /panel/.htaccess) with redirect permanent to https at the very top.
Code:RewriteEngine on
# Force SSL - Always first!
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://panel.domain.com/$1 [R,L]
I also struggle with similar issue
browsers by default load only http site that drops "Firefox can't establish a connection to the server" same with panel and same with other domains
manually if i type in https than the site runs.
Is this proper .htaccess file?
Code:
# Standard Sentora Rewrite Ruleset
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://s.lefetty.lv/$1 [R,L]
RewriteRule ^api/([^/\.]+)/?$ bin/api.php?m=$1 [L]
RewriteRule ^apps/([^/\.]+)/?$ etc/apps/$1 [L]
# Optionally you can uncomment the below line and configure your domain to only allow access from the FQDN.
%{SERVER_NAME} !^sentora\.domain\.com$
^ - [F]
# Deny access to some file types/directories
RewriteRule ^/?(\.git|\.tx|SQL|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
RewriteRule ^(etc/tmp|etc/zppy-cache|/etc/lib/pChart2/cache|etc/build) - [F,L,NC]
# Disable index listing
Options -Indexes