gen_nginx_conf: refactor rule files scanning

Signed-off-by: Alejandro Mery <amery@geeks.cl>
gen_nginx_config: refactor @ROOT@ and @D@ generation. introduce @DOMAINROOT@

Signed-off-by: Alejandro Mery <amery@geeks.cl>