Fix bugs for nginx.conf.