Report this

What is the reason for this report?

Deploy wordpress using docker compose with ssl

Posted on May 7, 2020

I was following: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose. but once I reached the 6th step and tried accessing the server it is giving the error 403 . Please help



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @sarjun36

Could you please confirm if you’ve also followed and completed the tutorials mentioned in the Prerequisites section of the article as well? Are you using a domain name or you’re using your IP address to access the WordPress installation?

You can check if Nginx is running with the following command:

systemctl status nginx

Make sure to check if you have port 80 open as well. If you want to allow both HTTP and HTTPS traffic, you can create a single rule that allows both ports. To allow all incoming HTTP and HTTPS (port 443) connections run this command:

sudo ufw allow proto tcp from any to any port 80,443
```

Let me know how it goes.

Regards,
Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.