This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
How to run multiple version PHP with Apache (use Sentora panel) on Centos ??? BigBang 4 9 ,468 12-23-2020, 03:31 PM
Last Post: djkashdui1
Having both HTTP & HTTPS (Port 443 and Port 80) sites on a server dsmarter 14 46 ,792 08-22-2020, 02:49 PM
Last Post: kenzopoker1
How To Add Letsencrypt SSL certificate To Domain Centos 7 franselect 1 4 ,851 07-04-2020, 02:55 AM
Last Post: Feilding Weather

Forum Jump:


Users browsing this thread: 1 Guest(s)