Hello, sorry for my bad English, it is not my first language.
I have a question regarding ngnix web templates:
You see, I have created a web template for the dokuwiki that I have installed on my website. I created this template because I need to modify some directories that appear in my installation folder to not be accessible via the web. I have been following the manual that appears on the dokuwiki and I have created my own ngnix templates by copying the ones that existed in hestiacp by default and implemented them in the web panel but no matter how I modify my template the changes that deny access are not implemented. What could I be doing wrong? Could it be that I’m not setting the path correctly?
I’ve been putting it three different ways:
sudo nano /usr/local/hestia/data/templates/web/nginx/doku.stpl
location ~ /(data/|conf/|bin/|inc/|vendor/) {
deny all;
}
location ~ /home/username/web/wiki.ouroboroslabs.eu/public_html/(data/|conf/|bin/|inc/|vendor/) {
deny all;
}
location ~ /home/username/web/wiki.ouroboroslabs.eu/public_html/(data|conf|bin|inc|vendor) {
deny all;
}
In theory I want things like the content that appears in this link to be inaccessible:
https://wiki.ouroboroslabs.eu/data/pages/wiki/dokuwiki.txt