hey @virtubox, thanks for the article! Going over it I just got the error below on
nginx -t config.
nginx: [emerg] "root" directive is duplicate in /var/www/mydomain.com/conf/nginx/magento.conf:22
nginx: configuration file /etc/nginx/nginx.conf test failed
I went to check and "it is" duplicate. There's one directive at the root of the file and others inside the setup and update location blocks, so I guess it isn't really duplicate.
I tried just to ignore it but the setup doesn't load so I guess I can't just go around ignoring failed nginx configuration files, right? =)