Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
330 views
by Rookie
closed by

Hello,

How do I correctly setup a WordPress website on a fresh Lightsail Ubuntu server, which is also connected through Cloudflare.

I've been trying for hours to figure out what I'm doing wrong to no avail.

I use the following:
sudo site example.com -wp -cache=on

sudo site example.com -ssl=on

In Cloudflare I have SSL/TLS encryption mode set to Full. Then whenever I access the website it gives a error code 522. 

If I don't use sudo site example.com -ssl=on and I set Cloudflare SSL/TLS encryption to Off, I am able to access the website. So I assume that the issue has to do with the SSL.

What am I doing wrong?

closed with the note: Solved
by Rookie

For those having the same issue, I've found what the problem was. 

By default, new Lightsail servers don't have HTTPS rule added IPv4/6 Firewall. Add that and all is good.

2 Answers

–1 vote
by Rookie

Try selecting Full mode

–1 vote
by Rookie

cache reset and Object cache

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...