Wordpress CSS not loading after LetsEncrypt Install

My domain is:
rednowerton.tk

I ran this command:

It produced this output:

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:

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, terminal only
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
sudo certbot --nginx -d rednowerton.tk -d www.rednowerton.tk

There were no errors in the cert bot install

Hello,

This is my config file.
LetsEncrypt installed correctly, and I’m hosting two websites using two docker containers.

When I browse to https://www.rednowerton.tk Nextcloud will load properly.

When I browse to https://rednowerton.tk/wordpress the CSS in wordpress will not load properly.

This is the config file:

server {
        listen 443 ssl;
        # If you want to also support ipv6
        listen [::]:443 ssl;
        server_name rednowerton.tk;


        ssl_certificate /etc/letsencrypt/live/rednowerton.tk-0001/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/rednowerton.tk-0001/privkey.pem;

        location /wordpress/ {
                proxy_pass_header   Server;
                proxy_set_header    Host $host;
                proxy_set_header    X-Real-IP $remote_addr;
                proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header    X-Forwarded-Proto $scheme;
                #rewrite ^/wordpress(/.*)$ $1 last;
                proxy_pass http://localhost:8081/;
        }

        location / {
                proxy_pass_header   Server;
                proxy_set_header    Host $host;
                proxy_set_header    X-Real-IP $remote_addr;
                proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header    X-Forwarded-Proto $scheme;
                proxy_pass http://localhost:81;
        }
}

Your WordPress Site URL is wrong: https://wordpress.org/support/article/changing-the-site-url/#changing-the-site-url

Currently it is https://rednowerton.tk, but you need to change it to https://rednowerton.tk/wordpress.

1 Like

Hi @ianarman1

that's not a problem of your certificate - this is correct.

It's a problem of your Wordpress configuration.

Check https://check-your-website.server-daten.de/?q=rednowerton.tk/wordpress/#html-content

There are some missing style sheets:

link
	stylesheet
	https://rednowerton.tk/wp-content/themes/twentynineteen/print.css?ver=1.4
	404
240 Bytes	Not Found
	1
	missing file

	
	

	link
	stylesheet
	https://rednowerton.tk/wp-content/themes/twentynineteen/style.css?ver=1.4
	404
240 Bytes	Not Found
	1
	missing file

	
	

	link
	stylesheet
	https://rednowerton.tk/wp-includes/css/dist/block-library/style.min.css?ver=5.2.2
	404
246 Bytes	Not Found
	1
	missing file

	
	

	link
	stylesheet
	https://rednowerton.tk/wp-includes/css/dist/block-library/theme.min.css?ver=5.2.2
	404
246 Bytes	Not Found
	1
	missing file

and one missing script file.

1 Like

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