How to configure both webserver and appserver for WordPress CMS?

How to configure both webserver and appserver for WordPress CMS?