According to "best practices" documentation, I tried to hide the common passwords list.
So, I've added at the end of Nginx configuration file the following directive:
When I try to restart Nginx it gives me an error.
That error points to the end of the configuration file:
I'm sure there's no missing braces, but still, it fails at that "}".
Any idea of what's going on?
So, I've added at the end of Nginx configuration file the following directive:
Code:
location = /data/top_passwords.txt {
deny all;
return 404;
}
Code:
$ sudo nginx -t nginx: [emerg] unexpected "}" in /etc/nginx/conf.d/zabbix.conf:76 nginx: configuration file /etc/nginx/nginx.conf test failed
Code:
70 }
71
72 location = /data/top_passwords.txt {
73 deny all;
74 return 404;
75 }
76 }
Any idea of what's going on?
Comment