![]() |
|
.htaccess has stopped working? - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: .htaccess has stopped working? (/showthread.php?tid=4004) |
.htaccess has stopped working? - tbrady85 - 09-07-2017 I have SSL enabled on my Sentora installation for my panel and all of my websites. I also have my .htaccess setup so that all http requests forward to https. Everything has been working great since initially setting this up. As I matter of fact I logged into my panel yesterday to check my webmail. Outside of checking my webmail I haven't made any changes to my server or my Sentora install. All of sudden, tonight, I go to log into my panel and I start receiving: Code: Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Apache Server at panel.breeviate.com Port 443I checked the rest of my domains and now all of them are receiving this message. I verified my .htaccess was being read by Apache by breaking it and receiving an Internal Server error. Now I have two questions: 1. What can I do to correct this? 2. What could have caused this to happen without any interaction from me? Here's what's in my .htaccess file (again this was working fine until today). Code: RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]RE: .htaccess has stopped working? - Me.B - 09-07-2017 Did you update the server? May be likely the condition is no more working. RE: .htaccess has stopped working? - TGates - 09-08-2017 What tutorial did you use for SSL? Do you have any sites at all on port 80? What happens if you use https to view your sites? Any errors? Your server should still listen on port 80 in order to forward to port 443. Does your /etc/sentora/configs/apache/httpd-vhosts.conf file have Listen 80 near the top? You may need to add this fix: https://github.com/sentora/sentora-core/commit/4e1e88828e7434c4d6423e1e84fd1176e30f3509 |