Servers are just programs running on a computer that serve up content.
Sometimes they serve up static files, and are exposed like a file system.
Sometimes they can be scripted using "server-side" programming languages (PHP, Python, Perl, Java, etc.) to serve more dynamic pages.