CB2.0: Move htaccess/user.ini block to webapps.conf (TEMPLATES)

Version 1.46


Removed the code: location ~ /\.ht { deny all; } from the 4 nginx_server*.conf templates. CB2 now adds it to: /etc/nginx/webapps.conf to save duplicate code. Also, it looks like this in the webapps.conf: location ~ /(\.ht|\.user\.ini) { deny all; } so that it also blocks .user.ini files.

Interested to try DirectAdmin? Get a 30-day Free Trial!