I was wondering if there was a way to customize the awstats template per domain, and not only the general one located in /usr/local/hestia/data/templates/web/awstats/awstats.tpl. I have a setup (for a single domain) where I fetch the logs from a custom path, but everytime that I rebuild the domain, the awstats config file gets overwritten with the default log path. Since i have other domains that use the “normal” log path, I can’t just change the value in the awstats.tpl
I didn’t check whether there’s an elegant way to do this, but you can use a really dirty workaround… Make the necessary changes to that specific awstats config, and then enable the immutable bit on the awstats config for that domain.
chattr +i /home/YourUser/conf/web/YourDomain/awstats.conf
Hestia won’t override the config file when rebuilding the web domain. However, as I mentioned, this is dirty, and you should remember that you activated the immutable bit on the file.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.