SSL Error on Port 443, Page is not showing and resulting in error 404
Asked Answered
R

5

7

I just recently had to find a way to get a SSL certificate for my domain as facebook required this by the 1st of October as you may aware.

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

Now my problem is, when I try to go to one of my https sites it always asks me to make an exception for my certificate (which is okay at the moment) but after creating this exception my Server, which is as I know a linux server with an cPanel backend, fires a 404 page not found notification to 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's WebMaster.

A FaceBook Tab HTTPS Site

Any diagnostics available what's this all about and whats the problem?

Any answer will be appreciated.

Rhea answered 26/10, 2011 at 20:40 Comment(0)
T
3

You need to configure your server to also serve your content on port 443 (https). Right now it's still using the cPanel default.

Typist answered 26/10, 2011 at 20:47 Comment(1)
How can I change those settings so that my server will serve content on port 443?Rhea
B
3

Once you installed ther certificates, you have to activate SSL via

Security -> SSL/TLS Manager -> Activate SSL on Your Web Site (HTTPS)
Boling answered 26/10, 2011 at 20:50 Comment(1)
There was and is no such option! I can only add those certificates... how to enable port 443?Rhea
M
1

If you got the 404, your SSL is working perfectly, as the "404" was transmitted via SSL. I would investigate the actual problem, which is the 404.

Mccrae answered 26/10, 2011 at 23:34 Comment(0)
B
1

i had similar problem on a server with few hosts (currentlly only one with https support)

i found the sulotion in cpanel FAQ, i went to WHM Home >> Service Configuration >> Apache Configuration >> Include 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>
Bowlder answered 15/8, 2015 at 11:3 Comment(0)
P
1

I realize this question is 4 years old.

If you can access the html page at your root domain (say https://midomain.com/), but pages in a directory like https://midomain.com/ give you a 404 Not Found error, then you probably need 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>
Pyriform answered 18/8, 2016 at 17:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.