Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to run wordpress behind HOST nginx? #251
how do I have to configure nginx to be able to run a dockerized wordpress setup? No, I do not intend to run a dockerized nginx and need/want it to be managed by my host.
I tried the following but I cannot get past the language setup
For /wp-admin I receive "ERR_TOO_MANY_REDIRECTS" and for the front page css won't get loaded properly
I already added the following to wp-config.php
Not sure whether the nginx setup is properly done so it would be great if someone could look into it (remember, nginx is running on host, mysql/wordpress is dockerized with the given .yml)
I added the following ONTOP of the wp-config.php file and got it working now. As it seems it MUST be placed as high as possible (which is a bad behavior anyways) or it won't work at all!
This block of code:
Should really be:
As to the block you added to
(As documented in http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy.)
I don't follow what the solution was here. I too am using a nginx running undockerized and I want it to proxy requests to the wordpress image. I was able to get through the installation wizard but there are no css assets loaded. I feel like this is a more basic question than nginx+ssl (which I'll get to next).
but I'm not seeing the extra config addd to
The proper environment variable is
works and you should see a styled installation.
final nginx.conf. But you should let certbot add the ssl related lines.
It's still not fully solved, the site redirects to
@morenoh149 the important bit your NGINX configuration is missing is the