.htaccess has stopped working?
#1
.htaccess has stopped working?
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 443

I 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]
Reply
#2
RE: .htaccess has stopped working?
Did you update the server?

May be likely the condition is no more working.
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#3
RE: .htaccess has stopped working?
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/...76e30f3509
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Email has stopped coming through rsthomas 3 6 ,783 06-21-2022, 12:05 PM
Last Post: fearworks
Add on Domains not working but Main domain works luckyviet 2 7 ,807 03-18-2020, 07:38 PM
Last Post: AanaNahum
Global .htaccess for Sentora and/or Apache rsthomas 2 7 ,917 01-13-2020, 06:52 AM
Last Post: Vedran B

Forum Jump:


Users browsing this thread: 1 Guest(s)