show a2enmod commands only when using apache, thx to d4n13L
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -40,14 +40,14 @@
|
|||||||
</visibility>
|
</visibility>
|
||||||
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
||||||
</command>
|
</command>
|
||||||
<command><![CDATA[a2dismod userdir]]></command>
|
|
||||||
<command><![CDATA[a2enmod headers]]></command>
|
|
||||||
</commands>
|
</commands>
|
||||||
</general>
|
</general>
|
||||||
<!-- HTTP Apache -->
|
<!-- HTTP Apache -->
|
||||||
<daemon name="apache" version="2.4" title="Apache 2.4" default="true">
|
<daemon name="apache" version="2.4" title="Apache 2.4" default="true">
|
||||||
<install><![CDATA[apt-get install apache2]]></install>
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
<include>//service[@type='http']/general/commands</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<command><![CDATA[a2dismod userdir]]></command>
|
||||||
|
<command><![CDATA[a2enmod headers]]></command>
|
||||||
<command>
|
<command>
|
||||||
<visibility mode="true">{{settings.phpfpm.enabled}}
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
</visibility>
|
</visibility>
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
</visibility>
|
</visibility>
|
||||||
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
||||||
</command>
|
</command>
|
||||||
<command><![CDATA[a2dismod userdir]]></command>
|
|
||||||
<command><![CDATA[a2enmod headers]]></command>
|
|
||||||
</commands>
|
</commands>
|
||||||
</general>
|
</general>
|
||||||
<!-- HTTP Apache -->
|
<!-- HTTP Apache -->
|
||||||
@@ -49,6 +47,8 @@
|
|||||||
default="true">
|
default="true">
|
||||||
<install><![CDATA[apt-get install apache2]]></install>
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
<include>//service[@type='http']/general/commands</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<command><![CDATA[a2dismod userdir]]></command>
|
||||||
|
<command><![CDATA[a2enmod headers]]></command>
|
||||||
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
<visibility mode="true">{{settings.phpfpm.enabled}}
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
</visibility>
|
</visibility>
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
</visibility>
|
</visibility>
|
||||||
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
||||||
</command>
|
</command>
|
||||||
<command><![CDATA[a2dismod userdir]]></command>
|
|
||||||
<command><![CDATA[a2enmod headers]]></command>
|
|
||||||
</commands>
|
</commands>
|
||||||
</general>
|
</general>
|
||||||
<!-- HTTP Apache -->
|
<!-- HTTP Apache -->
|
||||||
@@ -49,6 +47,8 @@
|
|||||||
default="true">
|
default="true">
|
||||||
<install><![CDATA[apt-get install apache2]]></install>
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
<include>//service[@type='http']/general/commands</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<command><![CDATA[a2dismod userdir]]></command>
|
||||||
|
<command><![CDATA[a2enmod headers]]></command>
|
||||||
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
<visibility mode="true">{{settings.phpfpm.enabled}}
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
</visibility>
|
</visibility>
|
||||||
@@ -83,6 +83,8 @@ Alias "/.well-known/acme-challenge" "{{settings.system.letsencryptchallengepath}
|
|||||||
<daemon name="apache" version="2.4" title="Apache 2.4">
|
<daemon name="apache" version="2.4" title="Apache 2.4">
|
||||||
<install><![CDATA[apt-get install apache2]]></install>
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
<include>//service[@type='http']/general/commands</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<command><![CDATA[a2dismod userdir]]></command>
|
||||||
|
<command><![CDATA[a2enmod headers]]></command>
|
||||||
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
<visibility mode="true">{{settings.phpfpm.enabled}}
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
</visibility>
|
</visibility>
|
||||||
|
|||||||
@@ -40,8 +40,6 @@
|
|||||||
</visibility>
|
</visibility>
|
||||||
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
<content><![CDATA[mkdir -p {{settings.system.deactivateddocroot}}]]></content>
|
||||||
</command>
|
</command>
|
||||||
<command><![CDATA[a2dismod userdir]]></command>
|
|
||||||
<command><![CDATA[a2enmod headers]]></command>
|
|
||||||
</commands>
|
</commands>
|
||||||
</general>
|
</general>
|
||||||
<!-- HTTP Apache -->
|
<!-- HTTP Apache -->
|
||||||
@@ -49,6 +47,8 @@
|
|||||||
default="true">
|
default="true">
|
||||||
<install><![CDATA[apt-get install apache2]]></install>
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
<include>//service[@type='http']/general/commands</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<command><![CDATA[a2dismod userdir]]></command>
|
||||||
|
<command><![CDATA[a2enmod headers]]></command>
|
||||||
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
<visibility mode="true">{{settings.phpfpm.enabled}}
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
</visibility>
|
</visibility>
|
||||||
@@ -83,6 +83,8 @@ Alias "/.well-known/acme-challenge" "{{settings.system.letsencryptchallengepath}
|
|||||||
<daemon name="apache" version="2.4" title="Apache 2.4">
|
<daemon name="apache" version="2.4" title="Apache 2.4">
|
||||||
<install><![CDATA[apt-get install apache2]]></install>
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
<include>//service[@type='http']/general/commands</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<command><![CDATA[a2dismod userdir]]></command>
|
||||||
|
<command><![CDATA[a2enmod headers]]></command>
|
||||||
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
<visibility mode="true">{{settings.phpfpm.enabled}}
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
</visibility>
|
</visibility>
|
||||||
|
|||||||
Reference in New Issue
Block a user