Origin of apache
Apache reaches English through Spanish. Apache today means “Any of several Athabascan-speaking peoples of the American southwest excluding Navajo, i.e., Chiricahua,…”.
Etymology of apache
From American Spanish apache, most likely from Zuni ʔa·paču (“Navajos”), or possibly from the Yavapai word ʔpačə, meaning "people". The web server software was named to honor the Apache people, although much has been made of the fact that its design was "patchy" (constructed by assembling software patches). See Apache HTTP Server § Name. The Parisian gangsters were named after the American tribe because of their aggressive reputation.
Etymology text from Wiktionary (CC BY-SA 4.0). Asterisked forms are reconstructed, not attested.