Backport osl-apache vhost fixes into osl-nginx

This imports much of the work done in ``osl-apache`` into nginx. That way we're basically using the same type of definition between either http server.
A new line separating this and the preceding line would be nice to differentiate it from the definition header.