Welcome! Log In Create A New Profile

Advanced

Using server_name variable in error_log filename

Ondrej Jombik
August 23, 2010 03:36PM
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@platon.org - http://platon.org


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using server_name variable in error_log filename

Ondrej Jombik August 23, 2010 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
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