AWStats on Nginx

91 views
Skip to first unread message

Carolyn Sullivan

unread,
Jun 30, 2023, 12:13:59 PM6/30/23
to AtoM Users
Hello,

I've been trying to set up and run AWStats on Nginx, but I can't get past the configuration phase.  Attempting to restart nginx to implement the changes made fails because the nginx web server configuration file objects to the inclusion of the section to permit URL access to script/files in AWStats directory, ie...

<Directory "/usr/local/awstats-7.5/wwwroot">
...
</Directory>

And I assume that's why I can't get access to the perl script awstats.pl to build the statistics database (https://awstats.sourceforge.io/docs/awstats.pdf).

Details on configuration and errors are in the attached documentation.


REER-AWStats-300623-1204-4.pdf

Jim Adamson

unread,
Jul 3, 2023, 11:59:42 AM7/3/23
to ica-ato...@googlegroups.com
Hello Carolyn,

From your PDF, it looks like you've added a config snippet that's valid for Apache HTTPD to an Nginx config file. Nginx won't understand that as the config formats differ between these two web servers.

You may have to manually "translate" the required config to Nginx format before dropping it into the config file. Alternatively there are guides out there for how to set this up.

Thanks, Jim

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/cdfd19b9-2013-4335-a9f3-efd60e8b2718n%40googlegroups.com.


--
Jim Adamson
Systems Administrator/Developer
Facilities Management Systems
IT Services
LFA/023 | Harry Fairhurst building | University of York | Heslington | York | YO10 5DD

Reply all
Reply to author
Forward
0 new messages