Collisionless electrostatic shock formation and ion acceleration in intense laser interactions with near critical density plasmas