a simple segment module for nginx