Catchall Host but different logfiles for domains
January 08, 2011 04:27PM
Hi,

i am using a catchall host for proxying requests to an other server.

now i want to have that nginx writes a logfile for every domain that is called...

i tried
access_log /var/log/nginx/$host.access.log;

but $host is not parsed :-)

how can i get it working?
Re: Catchall Host but different logfiles for domains
January 19, 2011 12:49PM
I have the exact same access_log directive in my catchall host config. It works. Perhaps the user under which nginx is running doesn't have write permission to /var/log/nginx on your file system.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready