If I used your mod, run fixweb make no domain .conf files inside /opt/configs/nginx/conf/domains. Yes, no issue related run restart-web with this situation.
With my original code, run fixweb make domain .conf files inside /opt/configs/nginx/conf/domains. Bo issue related run restart-web with this situation and I can reach to website.