Lua script and VHost.conf for generating mass virtual hosting environment like "user_dir" with "auto-map" on PHP5-FPM
Create unix users and add www-data to theyr groups.
Chown directories /srv/projects/projectname/workingspace to users and crate fpm-pools and put ports for fpm dependent on projectname in fpm-socket-ports-by-project-name.txt
https://gist.github.com/RafaelKa/6471345#file-lua-local-dev-conf-L26-L29 fixes problem with order of execution:
without wrapped like here https://gist.github.com/RafaelKa/7302c4e934c13a710694#file-dynamic-php-fpm-conf-L22 LuaHookTranslateName comes not to executing code and DocumentRoot is then /var/www (also default)