WordPress behind NGINX Reverse Proxy issues
-
WordPress install following @Dashrender's guide here. Everything works correctly when I connect directly to the WP server using the IP address, but as soon as I access it via its FQDN, reverse proxied with a separate NGINX server, I get some odd formatting and what appears to be no CSS.
-
Are you also adding SSL at this point, or only adding the reverse proxy?
-
@scottalanmiller I'm sorry, I misunderstood your question, I'm adding the proxy and the SSL, the certs are on the NGINX server
-
Why did you do all that install? Installing WordPress is a one liner You want the WP-CLI libraries for management purposes. And since you have them, installing is only this...
wp core download; wp core config --dbname=dbname --dbuser=dbuser --dbpass='mysecret' --dbhost=localhost; wp db create ; wp core install --url=mysite.com --title="My Title" --admin_user="admin" --admin_email="[email protected]"
-
Keep that command handy, because likely you will want to install WordPress many times on the same server. This way it's just one line and done, that's all that you need to make new sites over and over again.
-
@scottalanmiller :pensive_face: that was the latest install guide here
-
@bnrstnr said in WordPress behind NGINX Reverse Proxy issues:
@scottalanmiller I'm sorry, I misunderstood your question, I'm adding the proxy and the SSL, the certs are on the NGINX server
That's the issue. Your site is not prepped for SSL. Have you changed the URL of WP to point to https instead of http? Have you added an SSL plugin? I use Easy-SSL, I think.
-
@bnrstnr said in WordPress behind NGINX Reverse Proxy issues:
@scottalanmiller :pensive_face: that was the latest install guide here
https://mangolassi.it/topic/13062/install-a-basic-wordpress-site-with-wp-cli
-
@scottalanmiller said in WordPress behind NGINX Reverse Proxy issues:
https://mangolassi.it/topic/13062/install-a-basic-wordpress-site-with-wp-cli
Doh, somehow I missed this.
-
@bnrstnr said in WordPress behind NGINX Reverse Proxy issues:
@scottalanmiller said in WordPress behind NGINX Reverse Proxy issues:
https://mangolassi.it/topic/13062/install-a-basic-wordpress-site-with-wp-cli
Doh, somehow I missed this.
And this one....
https://mangolassi.it/topic/16084/installing-fedora-27-lamp-stack-plus-wordpress/