Had an issue over the last few weeks where some naughty people have been trying to DDOS and scrape Techieshelp. Techieshelp recently moved VPS provider and during this process moved from Apache to NGINX. By default it appears the NGINX does not enable its access logs so I did not have the data required to block the scrapers. People use the access logs to get an idea of the visitors who have been visiting their websites. This is how to enable the Access Logs in NGINX.
The file we need to edit is NGINX.CONF, it is normally located here.
To edit we use the following command:
Once done save the file and exit nano, we can stop start or restart NGINX with the following command.
sudo service nginx start sudo service nginx stop sudo service nginx restart
Now your access logs will start to populate, you can view these logs at the following location.