https without certificate redirects to panel
#11
RE: https without certificate redirects to panel
The solution for the "https without certificate redirects to panel" problem was found on October.2020
Was waiting for certain someone to update this thread but it never happened.

Anyways, here is the solution:
Add the following code to the end of the main ssl config file at /etc/httpd/conf.d/ssl.conf (Centos 7)
just before the ending tag </VirtualHost>
Code:
RewriteEngine on ReWriteCond %{SERVER_PORT} !^80$ RewriteRule ^/(.*) http://%{HTTP_HOST}/$1 [NC,R,L]

you will also need to edit the main httpd config file at /etc/httpd/conf/httpd.conf (Centos 7) so the solution above can work.
Change the Directory / directive to this:
Code:
<Directory /> AllowOverride All Require all granted </Directory>

There are more problems that happened when this solution was not implemented. The reason for why this fix works is complicated and won't go into. Undecided
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Improving Security on Your Sentora Panel: Best Practices DylanForeman 0 431 05-27-2025, 06:10 PM
Last Post: DylanForeman
How to run multiple version PHP with Apache (use Sentora panel) on Centos ??? BigBang 4 11 ,379 12-23-2020, 03:31 PM
Last Post: djkashdui1
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 52 ,009 08-22-2020, 02:49 PM
Last Post: kenzopoker1

Forum Jump:


Users browsing this thread: 2 Guest(s)