Use before_server and after_server for nginx_custom blocks and add sample in Vagrantfile