Hydrolyzes the galactose ester bonds of galactosylceramide, galactosylsphingosine, lactosylceramide, and monogalactosyldiglyceride. a beta-D-galactosyl-(1<->1')-N-acylsphing-4-enine + H2O = an N-acylsphing-4-enine + D-galactose Belongs to the glycosyl hydrolase 59 family.