attempt to detect nginx config better