add configuration sample for nginx
fix npe caused by vanilla nginx