Ticket #644 (new defect)
Opened 3 years ago
AWstats Nginx config breaks aegir
Reported by: | jim | Owned by: | chris |
---|---|---|---|
Priority: | minor | Milestone: | Maintenance |
Component: | Live server | Keywords: | |
Cc: | chris, ed, jim | Estimated Number of Hours: | 0.0 |
Add Hours to Ticket: | 0 | Billable?: | yes |
Total Hours: | 0.25 |
Description
Since the last update we've had a silent ngnix error that means http://tn.puffin.webarch.net was not available.
I restarted nginx and got:
[ ok ] Stopping Nginx Server...: [ .... ] Starting Nginx Server...:nginx: [emerg] "log_format" directive is not allowed here in /etc/nginx/nginx.conf:28
Which equates to the AWstats entry which is now commented out per:
# log for awstats #log_format apache '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent"'; #access_log /var/log/nginx/awstats.log apache;
I/we need access to aegir more than AWStats, so I've commented out the lines above and restarted nginx. Aegir is back and working well.
This ticket is to find the correct log_format for modern nginx versions and reinstate AWstats -- assigning to Chris as a low priority thing.
Change History
Note: See
TracTickets for help on using
tickets.