Wordpress behind NGINX Proxy

Trying to figure out why my Wordpress site is acting “wonky”.

If I access it directly, it loads fine - http://192.168.4.14:30040
If I access it via NPM with SSL turned off, it loads fine - http://wordpress.example.com

If I access it via NPM with SSL turned on, it has visual glitches - https://wordpress.example.com

The .htaccess file is unmodified from what was installed.
Any ideas appreciated.

The first thing come into my mind Is to check if there Is some http CSS that Is not be loaded when you have the secured connection… Just check It from browser

Ah, I see. All the sources are loading from the host name of the truenas server instead of from it’s own hostname.

So now I know what the problem is, how do I fix it?

Alright, it was actually a simple fix. Just my ignorance in working with Wordpress. I’m much better with Drupal.
Under ‘Settings > General’ there’s a site URL, that was set to the truenas container’s address by default. Changed it to the address I’m serving with NPM and now all is well.

1 Like