This has to be a huge can of worms. An App server has everything a web server has and more. A typicla web server will serve web pages. Sometimes it will do some dynamic html stuff too. An app server will also run applications and distributed stuff - usually EJB.