Hydrolyzes the galactose ester bonds of glycolipids such as galactosylceramide and galactosylsphingosine. a beta-D-galactosyl-(1<->1')-N-acylsphing-4-enine + H2O = an N-acylsphing-4-enine + D-galactose beta-D-galactosyl-(1<->1)-sphing-4-enine + H2O = D-galactose + sphing-4-enine a D-galactosylceramide + H2O = an N-acyl-sphingoid base + D-galactose Belongs to the glycosyl hydrolase 59 family.