Welcome! Log In Create A New Profile

Advanced

Re: Nginx vhost logging not working as expected

June 16, 2024 10:02PM
Found the problem: it was due to the missing semicolon at the preceding directive. I am not sure why I didn't see this before (and I was looking) but after a couple of restarts and trial-and-error attempts, I spotted the following warning:

[warn] ... only the last index in "index" directive should be absolute in /etc/nginx/sites-enabled/mydomain.com.conf:9

The directive preceding access_log was index and it lacked a semicolon. So, stupid me, of course but no brownie points to nginx for being so permissive with the syntax.
Subject Author Posted

Nginx vhost logging not working as expected

wendigo June 16, 2024 06:52PM

Re: Nginx vhost logging not working as expected

wendigo June 16, 2024 10:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready