diff --git a/type/__nginx_vhost/manifest b/type/__nginx_vhost/manifest index f9ad84d..8b010f8 100644 --- a/type/__nginx_vhost/manifest +++ b/type/__nginx_vhost/manifest @@ -32,7 +32,7 @@ case "$os" in require="$install_reqs" __start_on_boot nginx - export NGINX_SITEDIR="$nginx_confdir/conf.d" + export NGINX_SITEDIR="$nginx_confdir/http.d" export NGINX_CERTDIR="$nginx_confdir/ssl" export NGINX_SNIPPETSDIR="$nginx_confdir/snippets" export NGINX_WEBROOT="/var/www" @@ -158,6 +158,7 @@ for snippet in hsts 301-to-https; do done # Install vhost. -require="$install_reqs" __file "$NGINX_SITEDIR/$__object_id.conf" \ +require="$install_reqs" __directory "$NGINX_SITEDIR" +require="__directory/$NGINX_SITEDIR" __file "$NGINX_SITEDIR/$__object_id.conf" \ --source "$vhost_conf" \ --mode 0644