Advanced nginx configuration