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

**URL:** <https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593>\
**Category:** Troubleshooting\
**Created:** [11 March 2024 09:39 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593 "2024-03-11T09:39:46Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![tr1p0p](https://dietpi.com/forum/user_avatar/dietpi.com/tr1p0p/32/5814_2.png) [@tr1p0p](https://dietpi.com/forum/u/tr1p0p)\
**Post date:** [18 March 2024 14:42 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/21 "2024-03-18T14:42:47Z")

</div>

I successfully restore, and set my domains **but** CSS and all seem to be broken 😕

 ![image](https://dietpi.com/forum/uploads/default/original/2X/b/b7f646fc8028e8de4e4a953e0a2d28e1fad25c13.png)

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

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [18 March 2024 14:45 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/22 "2024-03-18T14:45:08Z")

</div>

what is the current setup? Plain Nginx?

---

<div class="post-metadata">

**Author:** ![tr1p0p](https://dietpi.com/forum/user_avatar/dietpi.com/tr1p0p/32/5814_2.png) [@tr1p0p](https://dietpi.com/forum/u/tr1p0p)\
**Post date:** [18 March 2024 14:58 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/23 "2024-03-18T14:58:34Z")

</div>

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 :

 ![image](https://dietpi.com/forum/uploads/default/original/2X/f/ff0aa564e0ab5221b678d02469c750f3d41e7d5f.jpeg)

Here’s my NPM config for my domain :

 ![image](https://dietpi.com/forum/uploads/default/original/2X/2/23204fa407de645d6d93c46f32a5d759cc139a71.png)  
 ![image](https://dietpi.com/forum/uploads/default/original/2X/3/36667afc656bc4c98b4a56a20d3465a0b2942cc4.png)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [18 March 2024 15:12 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/24 "2024-03-18T15:12:02Z")

</div>

how do you access it from within your local network?

Using IP or DDNS?

---

<div class="post-metadata">

**Author:** ![tr1p0p](https://dietpi.com/forum/user_avatar/dietpi.com/tr1p0p/32/5814_2.png) [@tr1p0p](https://dietpi.com/forum/u/tr1p0p)\
**Post date:** [18 March 2024 15:16 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/25 "2024-03-18T15:16:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tr1p0p](https://dietpi.com/forum/user_avatar/dietpi.com/tr1p0p/32/5814_2.png) [@tr1p0p](https://dietpi.com/forum/u/tr1p0p)\
**Post date:** [18 March 2024 15:26 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/26 "2024-03-18T15:26:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [18 March 2024 15:58 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/27 "2024-03-18T15:58:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tr1p0p](https://dietpi.com/forum/user_avatar/dietpi.com/tr1p0p/32/5814_2.png) [@tr1p0p](https://dietpi.com/forum/u/tr1p0p)\
**Post date:** [18 March 2024 16:22 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/28 "2024-03-18T16:22:12Z")

</div>

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](https://wordpress.org/plugins/really-simple-ssl/)) **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 🙂 [https://alchimia.ink](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 !

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [16 June 2024 16:22 UTC](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593/29 "2024-06-16T16:22:30Z")

</div>

Closed on 16 June 2024 16:22 UTC

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

[Previous page](https://dietpi.com/forum/t/dietpi-nginx-proxy-manager-phphmyadmin-wordpress-backup-and-others-adventures/19593.md?page=1)
