Clone this script and place it at
/tmp/naxsi-0.53-2
run it against your error log
python /tmp/naxsi-0.53-2/nx_util/nx_util.py -l /var/log/nginx/site1.error.log -o
Check for the new rules under
########### Optimized Rules Suggestion ##################