DRYing up some code and improving extensibility with Nginx configuration LWRPs

Oops, copy paste error from nginx_server_conf.  I'll remove it here.