apache-root #11
@ -4,7 +4,7 @@ maintainer_email 'you@example.com'
|
|||||||
license 'All Rights Reserved'
|
license 'All Rights Reserved'
|
||||||
description 'Installs/Configures t42-common'
|
description 'Installs/Configures t42-common'
|
||||||
long_description 'Installs/Configures t42-common'
|
long_description 'Installs/Configures t42-common'
|
||||||
version '0.1.5'
|
version '0.1.6'
|
||||||
chef_version '>= 13.0'
|
chef_version '>= 13.0'
|
||||||
|
|
||||||
depends 'nodejs'
|
depends 'nodejs'
|
||||||
|
@ -4,3 +4,7 @@
|
|||||||
].each do |pkg|
|
].each do |pkg|
|
||||||
apt_package pkg
|
apt_package pkg
|
||||||
end
|
end
|
||||||
|
|
||||||
|
systemd_unit 'apache2.service' do
|
||||||
|
action :restart
|
||||||
|
end
|
||||||
|
@ -41,6 +41,15 @@
|
|||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
<% if node['web']['root'] %>
|
||||||
|
DocumentRoot <%= node['web']['root'] %>
|
||||||
|
<Directory <%= node['web']['root'] %>/>
|
||||||
|
Options Indexes FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
<% end - %>
|
||||||
|
|
||||||
<% if node['web']['static'] %>
|
<% if node['web']['static'] %>
|
||||||
<% node['web']['static'].each do |static| -%>
|
<% node['web']['static'].each do |static| -%>
|
||||||
Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %>
|
Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user