Blank page, page does not load

My domain is: https://jakzaizzat.com/

I ran this command: certbot --nginx -d jakzaizzat.com -d www.jakzaizzat.com

It produced this output:Could not open file: /etc/nginx/sites-enabled/defaultWhat would you like to do?- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1: Attempt to reinstall this existing certificate2: Renew & replace the cert (limit ~5 per 7 days)- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 1Keeping the existing certificateDeploying Certificate to VirtualHost /etc/nginx/sites-enabled/jakzaizzatDeploying Certificate to VirtualHost /etc/nginx/sites-enabled/jakzaizzat``Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1: No redirect - Make no further changes to the webserver configuration.2: Redirect - Make all requests redirect to secure HTTPS access. Choose this fornew sites, or if you’re confident your site works on HTTPS. You can undo thischange by editing your web server’s configuration.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 1``- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Congratulations! You have successfully enabled https://jakzaizzat.com andhttps://www.jakzaizzat.com``You should test your configuration at:https://www.ssllabs.com/ssltest/analyze.html?d=jakzaizzat.comhttps://www.ssllabs.com/ssltest/analyze.html?d=www.jakzaizzat.com- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -`

My web server is (include version): nginx 1.10.3

The operating system my web server runs on is (include version): ubuntu 16

My hosting provider, if applicable, is: linode

I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0.31.0

When I browse to the webpage it is blank.
when I browse to the http version the page loads http://172.104.163.141/

Hi @ianarman

checking your main configuration that looks good.

You have three active certificates

CertSpotter-Id Issuer not before not after Domain names LE-Duplicate next LE
979543780 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-06-21 21:29:54 2019-09-19 21:29:54 jakzaizzat.com - 1 entries duplicate nr. 1
929779657 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-05-24 23:14:25 2019-08-22 23:14:25 jakzaizzat.com, www.jakzaizzat.com - 2 entries
830306845 CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US 2019-03-25 23:58:18 2019-06-23 23:58:18 jakzaizzat.com, www.jakzaizzat.com - 2 entries

but you don't use the last (with only one domain name), instead you use the certificate:

CN=jakzaizzat.com
	25.05.2019
	23.08.2019
expires in 62 days	
jakzaizzat.com, www.jakzaizzat.com - 2 entries

so both connections are secure. And you have two ip addresses (ipv4 and ipv6), that

Domainname Http-Status redirect Sec. G
http://jakzaizzat.com/
172.104.163.141 301 https://jakzaizzat.com/ 0.520 A
http://jakzaizzat.com/
2400:8901::f03c:91ff:fe97:7361 301 https://jakzaizzat.com/ 0.356 A
http://www.jakzaizzat.com/
172.104.163.141 301 https://jakzaizzat.com/ 0.620 E
http://www.jakzaizzat.com/
2400:8901::f03c:91ff:fe97:7361 301 https://jakzaizzat.com/ 0.516 E
https://www.jakzaizzat.com/
172.104.163.141 301 https://jakzaizzat.com/ 2.376 B
https://www.jakzaizzat.com/
2400:8901::f03c:91ff:fe97:7361 301 https://jakzaizzat.com/ 1.950 B
https://jakzaizzat.com/
172.104.163.141 200 2.966 B
https://jakzaizzat.com/
2400:8901::f03c:91ff:fe97:7361 200 2.010 B

looks good.

But loading the site there is a 420 byte download:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

Looks like you have Wordpress installed, but the php code isn't executed, instead part of the raw file is sent.

That doesn't happen checking an unknown file in the ACME validation directory:

https://jakzaizzat.com/.well-known/acme-challenge/check-your-website-dot-server-daten-dot-de

there is a correct http output created.

Looks like your WordPress installation is corrupted.

PS: So your certificate configuration and your main nginx configuration is correct.

Perhaps you have multiple vHosts, installing the certificate Certbot has picked the wrong vHost.

What says

nginx -T

If there are more then one port 443 vHost with the same server name, merge these. Every combination of port and domain name should be unique.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.