Use secure URLs by default in directory server

[finishes #52167789]