Aciphex is used to treat ulcers, gastroesophageal reflux disease (GERD or heartburn), and other conditions involving excessive stomach acid production. Nexium Known as the little purple pill, Nexium, which is also generically known as Esomeprazole, is available by prescription and over-the-counter.