refactor gen_config_rules to use $file_base.server_name instead of server_name_file

Signed-off-by: Alejandro Mery <amery@geeks.cl>
gen_nginx_conf: refactor for cleaner indenting of server {}

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