Support trailing slash on input server