logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: include filter invoked, SSI not rendering
Author
rossbcan



Joined: 15 Aug 2018
Posts: 8

PostPosted: Wed 15 Aug '18 20:56    Post subject: include filter invoked, SSI not rendering Reply with quote

Hi;

Apache 2.2 / Sme-Server 9.2, content via php

Having troubles with SSI <!--#include virtual="/Articles/SomeFile.htp"--> not being interpreted

(httpd.conf):
global: LoadModule filter_module modules/mod_filter.so
directory:
FilterDeclare SSI CONTENT_SET
FilterProvider SSI INCLUDES resp=Content-Type $text/html
FilterChain SSI
FilterTrace SSI 1

error_log:
cat /var/log/httpd/error_log | grep mod_filter.c
[Wed Aug 15 13:50:34 2018] [debug] mod_filter.c(117): [client 192.168.1.27] SSI
[Wed Aug 15 13:50:34 2018] [debug] mod_filter.c(122): [client 192.168.1.27] SSI: type: FILE, length: 199
[Wed Aug 15 13:50:34 2018] [debug] mod_filter.c(122): [client 192.168.1.27] SSI: type: EOS, length: 0
[Wed Aug 15 13:50:34 2018] [debug] mod_filter.c(117): [client 192.168.1.27] SSI
[Wed Aug 15 13:50:34 2018] [debug] mod_filter.c(122): [client 192.168.1.27] SSI: type: FILE, length: 147
[Wed Aug 15 13:50:34 2018] [debug] mod_filter.c(122): [client 192.168.1.27] SSI: type: EOS, length: 0
...

Seems that "something" is being filtered, yet view source still has:

<div class="article-text"><!--#include virtual="/Articles/SomeFile.htp"-->

<!--#include virtual="/Files/AboutBR.htp"-->

and, the virtual content (from included files) is missing

Anyone wanna throw me a bone?

Thanks;
Bill
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 16 Aug '18 0:49    Post subject: Reply with quote

mod_include also loaded?
Back to top
rossbcan



Joined: 15 Aug 2018
Posts: 8

PostPosted: Fri 17 Aug '18 17:05    Post subject: Reply with quote

Yes, mod_included loaded

This is on Sme-Server, with php-scl.

Turns out that php-scl does not inherit all httpd settings.

SOLVED by using native php version.
Back to top


Reply to topic   Topic: include filter invoked, SSI not rendering View previous topic :: View next topic
Post new topic   Forum Index -> Apache