Giter Site home page Giter Site logo

Comments (5)

razor-x avatar razor-x commented on June 11, 2024

In addition to the issue with the 000-, I think these lines and these lines are also part of the issue.

Specifically, the site config files now end in .conf, but the not_if / only_if tests miss files with that extension (also mentioned in #132):

::File.symlink?("#{node['apache']['dir']}/sites-enabled/#{params[:name]}") ||
::File.symlink?("#{node['apache']['dir']}/sites-enabled/000-#{params[:name]}")

This makes sense as my current workaround is

apache_site '000-default.conf' do
  enable node['apache']['default_site_enabled']
end

from apache2.

drpebcak avatar drpebcak commented on June 11, 2024

@razor-x the a2_.erb files that are in the cookbook are only there to recreate some of the capabilities if the ubuntu/debian a2_ commands (meaning the smartness of adding 000- to default only exists there as far as I know). You would have to specify a2dissite 000-default to disable the default site.

I've added .conf to those File.symlink? lines (I actually just added more OR statements to include situations where .conf is not included - for cases where people use apache2.2).

from apache2.

drpebcak avatar drpebcak commented on June 11, 2024

@razor-x let me know if the latest commits to https://github.com/drpebcak/apache2/tree/COOK-3900 solves this for you.

from apache2.

mariomarin avatar mariomarin commented on June 11, 2024

@drpebcak Using cookbook 'apache2', github: 'drpebcak/apache2', branch: 'COOK-3900' worked. Thank you.

from apache2.

lock avatar lock commented on June 11, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from apache2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.