Using server_name variable in error_log filename

Ondrej Jombik jombik at
Mon Aug 23 23:28:33 MSD 2010

This is good way how to make separate error logging per-server section

However we have many shared configuration files in conf.d/ and we have
one especially dedicated to logging.

Is there any variable containing server_name (and port) value which can
be use in filename passed to error_log ?



Platon Technologies Ltd., Hlavna 3, Sala SK-92701
+421 903 PLATON - info at -

More information about the nginx mailing list