Use the built in NGINX functions.