```ruby
# No default site
template '/etc/nginx/sites-available/no-default' do
  source 'no-default.erb'
  owner 'root'
  group 'root'
  mode '0755'
end

file "/etc/nginx/sites-enabled/default" do
  action :delete
  only_if do
    File.exists?("/etc/nginx/sites-enabled/default")
  end
end
```

Create new site, disable default.
user
```ruby
# No default site
nginxsite_create 'no-default' do
  template "no-default.erb"
  cookbook 'nginxh5bp'
  variables {}
  enable true
end

nginxsite_disable '000-default' do
end
```
assistant