Thanks,But I just posted that 000-default, i forgot to say that previously when the nginx is installed, it was the `default` only.Then I added the action :disable and ran again, it changed to `000-default`On Thursday, April 4, 2013 at 4:53 PM, Mike wrote:
To disable the pre-installed default site, you probably need to do:nginx_site '000-default' doaction :disableendinstead.This is probably a bug in the cookbook (I admit, I wrote the disablepart a long time ago, and at the time it worked for me), since there'ssupposed to be an attribute you can use to control this behavior. Ref:If that doesn't work, feel free to report a bug, and send it my way.Some packages may auto-enable the default site, and since nginx readssite definitions alphabetically, it is common for the file to be named000-default to be the first one loaded.-MOn Thu, Apr 4, 2013 at 4:49 AM, Sachin Sagar Rai < " target="_blank"> > wrote:Hi,I installed the nginx using the opscode cookbook nginxAnd this is the last code of my recipe:…nginx_site 'default' doaction :disableendnginx_site app_name doaction :enableendAfter going into /etc/ngins/sites-enabled, I see:lrwxrwxrwx 1 root root 34 Apr 4 08:38 000-default ->/etc/nginx/sites-available/defaultlrwxrwxrwx 1 root root 37 Apr 4 08:32 harstorage ->/etc/nginx/sites-available/harappThe question is, why just instead of removing the symlink, it renamed from`default` to `00-default`?It should have removed the link, why this?-------------------------------------------@millisami~ Sachin Sagar RaiRuby on Rails DeveloperSent with Sparrow
Archive powered by MHonArc 2.6.16.