You are not logged in.

#1 2016-01-03 18:56:23

kde35
Member
Registered: 2015-04-13
Posts: 71

Apache crashes with filter chain (mpm_prefork:notice SIGTERM)

Hi, I have an apache2 server running under Arch (Apache/2.4.18), but if I add filter directives

FilterDeclare PIWIK_token
FilterProvider PIWIK_token SUBSTITUTE resp=Content-Type $text/html
SUBSTITUTE 's|</body>|<!--#include virtual="/Brandon-et-compagnie/internal/piwik.txt" --></body>|ni'
FilterDeclare PIWIK_code
FilterProvider PIWIK_code INCLUDES resp=Content-Type $text/html
FilterChain PIWIK_token PIWIK_code

to httpd-vhosts.conf, then
apache craches on starting.  Error log says
[Sun Jan 03 19:35:23.122046 2016] [mpm_prefork:notice] [pid 3874] AH00169: caught SIGTERM, shutting down

These directive work fine with under Apache 2.2.22 under Mint 13 Maya so this is unlikely to be a syntax error.
It might be a problem of syntax that changed between Apache 2.2 and 2.4, but if I put

FilterDeclare gzip CONTENT_SET
FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
FilterChain gzip

(an example of filter chain taken form [url=https://httpd.apache.org/docs/2.4/mod/mod_filter.html#filterchain] Apache documentation for version 2.4)
[/url]) in vhosts.conf, apache still crashes, so this is probably an issue with Arch.  Would anyoe know how to get around this problem?

Thank you very much in advance.

Offline

Board footer

Powered by FluxBB