Nginx autoindex

Hello,

how can i enable nginx autoindex for a folder without losing the changes after hestia updates?

Regards

Hi @radexspox,

Replace YourUser, YourDomain and /dir with the actual data.

cd /home/YourUser/conf/web/YourDomain/
echo -e 'location /dir {\nautoindex on;\n}' > nginx.conf_autoindex
ln -s nginx.conf_autoindex nginx.ssl.conf_autoindex
systemctl reload nginx
1 Like

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