This is an (example) configuration for a nginx url-shortener. It is very small, simple and probably fast.