adjust fastcgi conf for php-fpm when using apache-2.4
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -68,8 +68,24 @@
|
|||||||
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
|
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="apache" version="2.4" title="Apache 2.4">
|
<daemon name="apache" version="2.4" title="Apache 2.4">
|
||||||
<include>//service[@type='http']/daemon[@name='apache'][@version='2.2']
|
<include>//service[@type='http']/general/commands</include>
|
||||||
</include>
|
<file name="/etc/apache2/modules.d/70_fastcgi.conf">
|
||||||
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
|
</visibility>
|
||||||
|
<content><![CDATA[
|
||||||
|
<IfModule mod_fastcgi.c>
|
||||||
|
FastCgiIpcDir <FPM_IPCDIR>
|
||||||
|
|
||||||
|
<Location "/fastcgiphp">
|
||||||
|
Require all granted
|
||||||
|
Require env REDIRECT_STATUS
|
||||||
|
</Location>
|
||||||
|
</IfModule>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
|
<command><![CDATA[rc-update add apache2 default]]></command>
|
||||||
|
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- HTTP Lighttpd -->
|
<!-- HTTP Lighttpd -->
|
||||||
<daemon name="lighttpd" title="LigHTTPd">
|
<daemon name="lighttpd" title="LigHTTPd">
|
||||||
|
|||||||
@@ -68,8 +68,24 @@
|
|||||||
<command><![CDATA[service apache2 restart]]></command>
|
<command><![CDATA[service apache2 restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="apache" version="2.4" title="Apache 2.4">
|
<daemon name="apache" version="2.4" title="Apache 2.4">
|
||||||
<include>//service[@type='http']/daemon[@name='apache'][@version='2.2']
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
|
</visibility>
|
||||||
|
<content><![CDATA[
|
||||||
|
<IfModule mod_fastcgi.c>
|
||||||
|
FastCgiIpcDir <FPM_IPCDIR>
|
||||||
|
|
||||||
|
<Location "/fastcgiphp">
|
||||||
|
Require all granted
|
||||||
|
Require env REDIRECT_STATUS
|
||||||
|
</Location>
|
||||||
|
</IfModule>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
|
<command><![CDATA[service apache2 restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- HTTP Lighttpd -->
|
<!-- HTTP Lighttpd -->
|
||||||
<daemon name="lighttpd" title="LigHTTPd">
|
<daemon name="lighttpd" title="LigHTTPd">
|
||||||
|
|||||||
@@ -68,8 +68,24 @@
|
|||||||
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
|
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="apache" version="2.4" title="Apache 2.4">
|
<daemon name="apache" version="2.4" title="Apache 2.4">
|
||||||
<include>//service[@type='http']/daemon[@name='apache'][@version='2.2']
|
<install><![CDATA[apt-get install apache2]]></install>
|
||||||
</include>
|
<include>//service[@type='http']/general/commands</include>
|
||||||
|
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
|
||||||
|
<visibility mode="true">{{settings.phpfpm.enabled}}
|
||||||
|
</visibility>
|
||||||
|
<content><![CDATA[
|
||||||
|
<IfModule mod_fastcgi.c>
|
||||||
|
FastCgiIpcDir <FPM_IPCDIR>
|
||||||
|
|
||||||
|
<Location "/fastcgiphp">
|
||||||
|
Require all granted
|
||||||
|
Require env REDIRECT_STATUS
|
||||||
|
</Location>
|
||||||
|
</IfModule>
|
||||||
|
]]>
|
||||||
|
</content>
|
||||||
|
</file>
|
||||||
|
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
|
||||||
</daemon>
|
</daemon>
|
||||||
<!-- HTTP Lighttpd -->
|
<!-- HTTP Lighttpd -->
|
||||||
<daemon name="lighttpd" title="LigHTTPd">
|
<daemon name="lighttpd" title="LigHTTPd">
|
||||||
|
|||||||
Reference in New Issue
Block a user