{"action":"created","issue":{"url":"https://api.github.com/repos/svanzoest/apache2-cookbook/issues/315","labels_url":"https://api.github.com/repos/svanzoest/apache2-cookbook/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/svanzoest/apache2-cookbook/issues/315/comments","events_url":"https://api.github.com/repos/svanzoest/apache2-cookbook/issues/315/events","html_url":"https://github.com/svanzoest/apache2-cookbook/issues/315","id":57479437,"number":315,"title":"Missing .conf extension for sites-available/* sites-enabled/*","user":{"login":"hrak","id":1963283,"avatar_url":"https://avatars.githubusercontent.com/u/1963283?v=3","gravatar_id":"","url":"https://api.github.com/users/hrak","html_url":"https://github.com/hrak","followers_url":"https://api.github.com/users/hrak/followers","following_url":"https://api.github.com/users/hrak/following{/other_user}","gists_url":"https://api.github.com/users/hrak/gists{/gist_id}","starred_url":"https://api.github.com/users/hrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrak/subscriptions","organizations_url":"https://api.github.com/users/hrak/orgs","repos_url":"https://api.github.com/users/hrak/repos","events_url":"https://api.github.com/users/hrak/events{/privacy}","received_events_url":"https://api.github.com/users/hrak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/svanzoest/apache2-cookbook/labels/apache-2.4","name":"apache-2.4","color":"eb6420"},{"url":"https://api.github.com/repos/svanzoest/apache2-cookbook/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-12T16:03:04Z","updated_at":"2015-02-13T09:42:36Z","closed_at":null,"body":"In this bit of code, the cookbook wants to delete the default vhost config installed by the apache2 package\r\n```ruby\r\n%w(default 000-default).each do |site|\r\n  link \"#{node['apache']['dir']}/sites-enabled/#{site}\" do\r\n    action :delete\r\n  end\r\n\r\n  file \"#{node['apache']['dir']}/sites-available/#{site}\" do\r\n    action :delete\r\n    backup false\r\n  end\r\nend\r\n```\r\nOn Ubuntu 14.04 and Debian Sid, the files in sites-available/ and the links in sites-enabled/ have a .conf extension ('000-default.conf') so they are never removed."},"comment":{"url":"https://api.github.com/repos/svanzoest/apache2-cookbook/issues/comments/74228328","html_url":"https://github.com/svanzoest/apache2-cookbook/issues/315#issuecomment-74228328","issue_url":"https://api.github.com/repos/svanzoest/apache2-cookbook/issues/315","id":74228328,"user":{"login":"hrak","id":1963283,"avatar_url":"https://avatars.githubusercontent.com/u/1963283?v=3","gravatar_id":"","url":"https://api.github.com/users/hrak","html_url":"https://github.com/hrak","followers_url":"https://api.github.com/users/hrak/followers","following_url":"https://api.github.com/users/hrak/following{/other_user}","gists_url":"https://api.github.com/users/hrak/gists{/gist_id}","starred_url":"https://api.github.com/users/hrak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrak/subscriptions","organizations_url":"https://api.github.com/users/hrak/orgs","repos_url":"https://api.github.com/users/hrak/repos","events_url":"https://api.github.com/users/hrak/events{/privacy}","received_events_url":"https://api.github.com/users/hrak/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T09:42:35Z","updated_at":"2015-02-13T09:42:35Z","body":"#188 seems related, and also mentions 000-default.conf, but the fix applied in that bug report still does not cover the .conf extension. The only thing that sort of fixed #188 was this change:\r\n\r\n```ruby\r\n+apache_site '000-default' do\r\n+ enable node['apache']['default_site_enabled']\r\n+end\r\n```\r\nthat re-enables the never removed 000-default.conf (ignoring the 'sites-available/default.conf' that gets installed by the cookbook). This bit is now removed from the current version of the cookbook."}}