Why "wake for network access" does not work when setting CI server

I used a iMac as a web server and left the computer running 24/7 for months at a time. I did set the Mac to "Put hard disks to sleep when possible" and allowed the display to sleep after 15 minutes. I set the Computer sleep to never.