http://nginx.org/en/docs/http/ngx_http_log_module.html
"The file path can contain variables (0.7.6+), but such logs have some constraints" So yes, you can use things such as $host - but there will be a performance penalty. On 15/06/2017, 13.02, "nginx on behalf of ST" <[email protected] on behalf of [email protected]> wrote: >Hello, > >is it possible somehow to define separate logs within the same server{} >for different server names (server_name one.org two.org;)? > >access_log /var/log/nginx$server_name/access.log; >error_log /var/log/nginx$server_name/error.log; > >Thank you! > >_______________________________________________ >nginx mailing list >[email protected] >http://mailman.nginx.org/mailman/listinfo/nginx _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
