Set up Automatic Virtual Hosts with Nginx and Apache

That is a pretty good little trick. Adding it to my nginx.conf now. Thanks for the tip!

I went looking for the reason why Nginx doesn’t allow the variable in the error log file name and it done so by design, so that Nginx can still write out errors, even when it can’t expand variables. Using SED is suggested as possible workaround.

Scott

1 Like