(copy) Running NGINX in the Foreground
copying from http://honeyco.nyc/blog/running-nginx-in-the-foreground/
默认情况下nginx是以daemon方式启动的,下面是如何让nginx在前台运行
If you’re planning on using nginx has a frontend to one or more app processes, it can be helpful to setup and test things locally. An easy way to do this is to run nginx in the foreground so you can quickly iterate your config options to see what works. First, you need to create a config: