Using server_name variable in error_log filename

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


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

http://wiki.nginx.org/SeparateErrorLoggingPerVirtualHost

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 ?

Thanks

Ondrej

--
Ondrej JOMBIK
Platon Technologies Ltd., Hlavna 3, Sala SK-92701
+421 903 PLATON - info at platon.org - http://platon.org




More information about the nginx mailing list