Adds custom_fragment to vhosts for custom directives. Closes #409