variables in log file name?

Remo Laubacher remo.laubacher at
Mon Aug 13 21:14:08 MSD 2007

Hello everybody,

simple question: Is it possible to use variables (like $server_name)
inside a filename?

something like this:
http {
  access_log logs/access$server_name.log combined;

I triedseveral things like <'logs/access$server_name.log'> or
<logs/access${server_name}.log> or <access_log $server_name combined>..

Thanks a lot!

More information about the nginx mailing list