Commit 58182e8
authored
Delete old configuration when changing template
When we want to change nginx template. The current hestiacp will only check if there is a 'proxy_cache_path' setting for this domain in '/etc/nginx/conf.d/01_caching_pool.conf'. if there is, hestia will skip adding config again. Because hestia will assume the configuration still the same. Remember, Other template can also change this config.
We need to delete previous config and reinstall our config again. Just to make sure if other template changing "proxy_cache_path" configuration. for example:
-) previous template changed " keys_zone" parameter, when we changed to 'caching' template. it will cause: "new_name" zone "example.com" is unknown
-) previous template changed "levels" parameter, when we changed to 'caching' template. it will cause: "example.com" had previously different levels1 parent 1280c82 commit 58182e8
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments