Nginx VirtualDocumentRoot with Nginx I recently upgraded our internal LEMP stack to use Nginx instead of Apache and one of the feature I missed was the VirtualDocumentRoot directive from a module called mod_vhost_alias to dynamically set the DocumentRoot like this: <VirtualHost *:80> DocumentRoot /var/www ServerName example.com UseCanonicalName Off
Nginx LEMP setup with Vagrant We use Vagrant a lot at work and we love it! When you want to make serious PHP developement, you need the right tool for the right job and avoid stuff like XAMPP. The main reason why we prefer to use a Virtual Machine is that we want to be