server code for nginx