lib: better support for non-nginx servers
0.2.6