I am trying to set up awstats for nginx, and it almost succeeded: in / var / lib / awstats /, a text file is created in which the statistics are written, but all attempts to open awstats end with an error 404 on the site.
Nginx settings look like this:
server { listen 80 default_server; listen [::]:80 default_server; root /usr/share/wordpress; location /awstats/ { root /usr/lib/cgi-bin; index index.html index.htm index.pl; } location /awstatsclasses/ { alias /usr/share/awstats/lib/; } location /awstats-icon/ { alias /usr/share/awstats/icon/; } location /awstatscss { alias /usr/share/doc/awstats/examples/css/; } } In general, all settings are taken from here: http://www.tech-notes.net/awstats-for-nginx/
I can not figure out how to fix it, or at least where I can read in detail about the nginx settings for wordpress?