I installed Ubuntu 18.04 on the raspies and installed wordpress on docker.
Reference site where wordpress is installed in docker
After installing it, the wifi at home is connected well, and the css is loaded well.
Next, I linked to the domain in Nginx, but when I visited from the domain, I got the following error:
In other words, you can find
This may be due to Nginx configuration.
Here is a simple configuration:
How can I fix it?ubuntu docker wordpress nginx
Assume you are on the installation page from the message in the questionnaire.
If you use
proxy_pass on nginx, the request will be overwritten with the hostname used in proxy_pass, as pointed out in the other answer.
If you want to continue with the Host header from the original request,
proxy_set_header will hand over the original request header.
wordpress:latest operates PHP with Apache HTTPD, but php-fpm is often preferred when used with nginx (if desired).
The reason seems to be that you specified localhost in the following description.
© 2022 OneMinuteCode. All rights reserved.