Question

Deploy wordpress using docker compose with ssl

Posted May 7, 2020 84 views
WordPressDocker

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

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.

×
1 answer

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

Submit an Answer