SSL error on port 443, the page does not appear and results in 404 error

Recently, I needed to find a way to get an SSL certificate for my domain, since facebook required this by October 1st, as you know.

Therefore, I signed and installed my startssl certificate on my server.

Now my problem is that when I try to go to one of my https sites, it always asks me to make an exception for my certificate (for now this is normal), but after creating this exception my Server, which is how I know linux server with cPanel backend, launches 404 pages that did not find notifications for me.

404 Not Found The server can not find the requested page: greentomatocars.com.au/fbtab/booking (port 443) Please forward this error screen to greentomatocars.com.au WebMaster. 

FaceBook Tab HTTPS Website

Is there any diagnosis, what is it and what is the problem?

Any answer would be appreciated.

+6
source share
5 answers

You need to configure the server so that it also serves your content on port 443 (https). Now it is still using cPanel default .

+2
source

Once you have installed ther certificates, you need to activate SSL through

 Security -> SSL/TLS Manager -> Activate SSL on Your Web Site (HTTPS) 
+3
source

If you received 404, your SSL works fine because "404" was transmitted over SSL. I would investigate the actual problem, which is 404.

+1
source

I had a similar problem on a server with multiple hosts (currently only one with https support)

I found sulotion in the cpanel FAQ , I went to WHM Home → Service Configuration → Apache Configuration → Enable Editor → Pre Virtual Host Include and added the following lines:

 <VirtualHost IPADDRESS:443>  ServerName HOSTNAME  DocumentRoot /usr/local/apache/htdocs  ServerAdmin EMAIL  <IfModule mod_suphp.c>    suPHP_UserGroup MYUSER MYGROUP  </IfModule>    SSLEngine on    SSLCertificateFile SSLCERTIFICATEFILE    SSLCertificateKeyFile YOUR-SSLCERTIFICATEKEYFILE </VirtualHost> 
+1
source

I understand that this issue is 4 years old.

If you can access the html page in the root domain (say https://midomain.com/ ), but the pages in the directory, for example https://midomain.com/ , you get a 404 Not Found error, then you probably you will have to add these lines to your httpd-ssl file:

(applies to Apache 2.4)

  <Directory /> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Allow from all </Directory> 
0
source

Source: https://habr.com/ru/post/900160/


All Articles