in reply to perl CGI

A review of various Apache directives should make this clear. Anytime Apache receives a URL, it will either deliver a file to you verbatim, or it will run something and deliver its output. Directives tell it which one to do. There are many variations, on this one simple idea.