Static relativistic perfect fluids with spherical, plane, or hyperbolic symmetry