Acyclovir is the generic name for Zovirax, a prescription medication used to treat certain virus infections. The Food and Drug Administration (FDA) approved acyclovir to treat viral infections from the varicella virus that causes chicken pox and shingles, as well as infections from the virus that causes genital herpes.