Fun with Apache's mod_vhost_alias

Using mod_vhost_alias, it's possible to expose previous or development versions of a website that's developed under Vesta.

<VirtualHost *:80>
        ServerName www.example.com
        ServerAlias example.com
        DocumentRoot /vesta/example.com/website/latest
        ErrorLog logs/www.err
        CustomLog logs/www.access combined
</VirtualHost>

<VirtualHost *:80>
        ServerName co.www.example.com
        ServerAlias *.co.www.example.com
        VirtualDocumentRoot /vesta/example.com/website/checkout/%1/%2
        ErrorLog logs/co.err
        CustomLog logs/co.access combined
</VirtualHost>

<VirtualHost *:80>
        ServerName ver.www.example.com
        ServerAlias *.ver.www.example.com
        VirtualDocumentRoot /vesta/example.com/website/%1
        ErrorLog logs/ver.err
        CustomLog logs/ver.access combined
</VirtualHost>