Zachary Tyhacz
1 min readJan 27, 2022

--

Hello Rahul,

I would keep Wordpress on port 80 because this is default expected behavior, and what you want.

I would double check your NGINX configuration. You can see your NGINX logs in the NGINX container at /var/log/nginx/error.log

To enter the terminal in the NGINX container, execute:

$ docker exec -it nginx bash

This will put you into the shell of the container. You will likely have to use cat or less to look inside the log file.

Please make sure that the redirect of :80 ( http ) to :443 ( https ) is correct. If that is correct, make sure that your root and index are correct. These are very easily over-looked. The idea with this redirect is:

  • Catch all incoming HTTP requests on port 80
  • Redirect all of them to same URL, but with HTTPS ( to port 443 )
  • On port 443, serve the index.php of Wordpress from the root folder.

Also, make sure your permissions of your Wordpress project folders are correct — see the section in this article about permissions. Having incorrect permissions for the folders inside your Wordpress folder will cause some notorious problems.

Hope this helps Rahul, if you find a solution please reply your fix here!

Thanks!

--

--

No responses yet