Require only if nginx is enabled.