# Reinstall without losing config?

**URL:** <https://forum.hestiacp.com/t/reinstall-without-losing-config/22033>\
**Category:** Install & Set-Up\
**Created:** [August 2, 2026, 4:08pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033 "2026-08-02T16:08:21Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [August 10, 2026, 4:30pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/21 "2026-08-10T16:30:16Z")

</div>

> [@sjordi](#):
>
> proxy\_passreverse"

The directive `proxy_passreverse` doesn’t exist in Nginx. So, it looks like you modified the template used by your web domain and added that wrong directive, maybe you meant `proxy_pass` instead of `proxy_passreverse`. You should fix the template used by your web domain and rebuild it.

---

<div class="post-metadata">

**Author:** ![sjordi](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sjordi/32/7128_2.png) [@sjordi](https://forum.hestiacp.com/u/sjordi)\
**Post date:** [August 10, 2026, 4:41pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/22 "2026-08-10T16:41:20Z")

</div>

ok I’ll check this later.  
Will come back in a few hours.  
I really do appreciate your guidance and patience 🙂

---

<div class="post-metadata">

**Author:** ![sjordi](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sjordi/32/7128_2.png) [@sjordi](https://forum.hestiacp.com/u/sjordi)\
**Post date:** [August 10, 2026, 7:11pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/23 "2026-08-10T19:11:51Z")

</div>

Ok I checked the file that had that typo and it’s never used. That stpl file is not used, it was for test purpose.  
I removed the offending line and rebooted, but still nothing works except just one of the websites.  
I may try to compare the tpl and stpl files with other domains to see why that only specific website is reachable while others are not.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [August 10, 2026, 7:20pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/24 "2026-08-10T19:20:34Z")

</div>

You can check the templates used by your domains (replace `YourUser` and `YourDomain` with the actual user and domain:

```auto
 v-list-web-domain YourUser YourDomain json | jq -r '.[] | to_entries[] | select(.key == "TPL" or .key == "BACKEND" or .key == "PROXY") | "\(.key): \(.value)"

```

---

<div class="post-metadata">

**Author:** ![sjordi](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sjordi/32/7128_2.png) [@sjordi](https://forum.hestiacp.com/u/sjordi)\
**Post date:** [August 10, 2026, 8:02pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/25 "2026-08-10T20:02:24Z")

</div>

That just gives me a `>`  
And I’m locked somewhere. I have to ctrl-c to leave

`v-list-web-domain YourUser YourDomain json`  
alone lists the properties and I can see it’s using the correct PROXY file.  
`"PROXY": "proxy_sjordi",`

Just checked the working site against the others, no differences besides the port number (of course) in the tpl and stpl files.

If I enter HestiaCP Domains and try to SAVE any of the existing domains, they failed because of nginx: `Error: nginx restart failed`

So I think the problem is with the certificates.

/var/log/hestiacp/error.log shows, for my [sjordi.com](http://sjordi.com) domain  
`26-08-10 19:43:32 v-add-web-domain-ssl-force 'sjordi' '``sjordi.com``' [Error 20]`  
`2026-08-10 19:43:49 v-restart-proxy '' [Error 20]`  
`2026-08-10 19:43:49 v-add-web-domain-ssl-force 'sjordi' '``sjordi.com``' [Error 20]`  
`2026-08-10 19:44:10 v-restart-proxy '' [Error 20]`

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [August 10, 2026, 9:24pm UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/26 "2026-08-10T21:24:37Z")

</div>

> [@sjordi](#):
>
> That just gives me a `>`

I forgot to add the last quote:

```auto
v-list-web-domain YourUser YourDomain json | jq -r '.[] | to_entries[] | select(.key == "TPL" or .key == "BACKEND" or .key == "PROXY") | "\(.key): \(.value)"'

```

> [@sjordi](#):
>
> So I think the problem is with the certificates.

First you need to know the reason nginx is not starting. In your previous post the error was the wrong directive `proxy_passreverse`.

Check again the nginx conf errors and show the output:

```auto
nginx -t

```

Also, show your proxy templates:

```t
cat /usr/local/hestia/data/templates/web/nginx/proxy_sjordi.tpl
cat /usr/local/hestia/data/templates/web/nginx/proxy_sjordi.stpl

```

---

<div class="post-metadata">

**Author:** ![sjordi](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sjordi/32/7128_2.png) [@sjordi](https://forum.hestiacp.com/u/sjordi)\
**Post date:** [August 11, 2026, 9:53am UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/27 "2026-08-11T09:53:46Z")

</div>

> [@sahsanu](#):
>
> `nginx -t`

Ok,

I actually tested nginx using this command yesterday just before you wrote back and found the culprit.

One of the `stpl` file modified lately while testing a new Nextcloud feature that screwed it. It declared the `location /` twice. And this had a chain effect on the entire nginx structure of course.

But I had to manually check (and grep) the `/etc/nginx/conf.d/domains/*` files and manually edit and clean the `/etc/nginx/nginx.conf` file itself.

Then guess what? Everything is back on tracks and I can’t express how helpful @sahsanu has been. You didn’t make my day, you did make my month !!!

I’m extremely grateful for your help and for this great product.

`for (int i = 0; i < 1 000 000; i++) {`  
` cout << "THANKS" << "\n";`  
`}`

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [August 11, 2026, 10:47am UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/28 "2026-08-11T10:47:34Z")

</div>

I really appreciate your kind words, and I’m glad you were able to resolve the issue 🤗

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [September 10, 2026, 10:47am UTC](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033/29 "2026-09-10T10:47:57Z")

</div>

Closed on September 10, 2026, 10:47am UTC

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

[Previous page](https://forum.hestiacp.com/t/reinstall-without-losing-config/22033.md?page=1)
