Comments (5)
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.
@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.
@razor-x let me know if the latest commits to https://github.com/drpebcak/apache2/tree/COOK-3900 solves this for you.
from apache2.
@drpebcak Using cookbook 'apache2', github: 'drpebcak/apache2', branch: 'COOK-3900'
worked. Thank you.
from apache2.
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)
- Amazon 2018 install broken with PR#688 HOT 1
- PIDFILE is not rendered in /etc/sysconfig/httpd HOT 2
- Enable template_cookbook property in default apache2_install
- ServerName directive absent from apache2.conf.erb HOT 2
- Allow passing arbitrary variables to conf templates via apache2_conf
- problem with apache2 HOT 2
- Infinite loop from apache2_mod_auth_cas and apache2_module 'auth_cas' resources HOT 28
- chef_version constraint is not accurate. HOT 2
- apache2 Chef-17 compatability HOT 1
- The default_site resource does not support custom variables
- The default_site resource property site_action does not work
- Unable to override options for security and charset configurations with install resource
- Package mod_ldap not installed on Centos if you enable mod_ldap
- Option to config using different instance name HOT 1
- Apache
- apache2_module breaks authz_svn module loading HOT 3
- Apache
- apache_mod_php_filename and apache_mod_php_modulename incompatible with Ubuntu 22.04 HOT 2
- pkg.apache2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apache2.