DietPi, Nginx proxy manager, phphmyadmin, wordpress backup and others adventures!

I successfully restore, and set my domains but CSS and all seem to be broken :confused:

It’s not when i access it via public_ip, so i guess it’s nginx configuration, still ?

what is the current setup? Plain Nginx?

I use dietpi-software to install a fresh wordpress, import the database and restore the folders after on the folder made by wordpress.

I still use nginx proxy manager to make the proxy.

On publicip it look like this :

Here’s my NPM config for my domain :


image

how do you access it from within your local network?

Using IP or DDNS?

The pi is outside my local network, so i use the public_ip to reach it. Got a fix ip and set the DNS on OVH

Ok by logging to the debbug of firefox, i can see it’s because the website got mixed content between HTTP and HTTPS.

So now it’s conflict again with nginx proxy manager, because the nginx.conf don’t have settings for ssl.

Maybe you’re right i should uninstall npm and just start from it. But i’m worried about the managing of domains after that. But also, i only got two domains to restore and two wordpress website, so it shouldn’t be that hard.

Or, maybe i could fix the https issue locally ? but i guess it will conflict with the certificate made by npm.

There is still a misunderstanding on how the scenario is working. If using NPM, there is nothing to be configure in local nginx, except the local http port. The whole domain and SSL handling is done by NPM.

Means NPM will handle whole traffic on port 80/443.

The local nginx should stay without any SSL confirmation.

To have it correctly working, it is important to access the web site using your domain name. SSL is not working using IP address.

Yeah ok, so it was a mess. But i finally fix everything !

So, yeah, nginx couldn’t do anything for most of the part. Because the main problem was somes old url, mixing with the new url in my database. And the new and old also mixed http and https.

So i have to use… a plugin to fix that (this one : Really Simple SSL – WordPress plugin | WordPress.org) and also use a SQL query to change some old url

And it basically fix all the problem with mixed content and bring my site back ! (here :slight_smile: https://alchimia.ink)

Edit : Oh, nevermind. Now for some reasons ALL pages except the homepage and the admin bring a 404 error…

Re-Edit : Need to simply save in settings/permalink to make all things comeback. Everything good now !

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.