mod_ssi do not work when mod_compress is active

Bug #264349 reported by Giuseppe Sacco on 2008-09-03
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lighttpd (Debian)
Fix Released
lighttpd (Ubuntu)

Bug Description

Binary package hint: lighttpd

I am using 1.4.18-1ubuntu1.4 on Ubuntu Gutsy with security updates. I enabled mod_ssi using command "lighty-enable-mod ssi" and created a page with a few "include" directives.

Then, I displayed the page on "firefox", but no include directive was executed. When loading the same page with "wget" everything was correctly included.

I found that firefox was negotiating a compressed HTTP transport, while wget was using plain HTTP/1.0. So I tought that something could be wrong on compressed transfers.

Once removed "mod_compress" from lighttpd.conf, the server started to provide the correct page to all clients types.

So, probably, when using compression, mod_ssi is disabled.


Changed in lighttpd:
status: Unknown → New
lsw (lwasserm-sdf) wrote :

I recently installed lighttpd and had the same problem. I found this bug report while searching for a solution. I thought I'd play with the order of loading modules and found that if mod_ssi is loaded in the lighttpd.conf server.modules section before mod_compress, then ssi and compression will both work. Apparently if done the other way around lighttpd compresses the file before it does the includes.

server.modules = (
# load mod_ssi before mod_compress or ssi won't work.
# "mod_rewrite",
# "mod_redirect",
# "mod_status",
# "mod_evhost",
# "mod_usertrack",
# "mod_rrdtool",
# "mod_webdav",
# "mod_expire",
# "mod_flv_streaming",
# "mod_evasive"

Anton Kudris (kudris) wrote :

same problem with ubuntu 8.10 and lighttpd 1.4.19
lsw solution (with module loading reordering) helped me

Changed in lighttpd (Debian):
status: New → Incomplete
Changed in lighttpd (Debian):
status: Incomplete → Fix Released
Changed in lighttpd (Ubuntu):
status: New → Confirmed
Horst Schirmeier (horst) wrote :

This is still broken in Ubuntu 11.04. I'm observing this bug with lighttpd 1.4.28-2ubuntu1.

Still broken in Ubuntu 13.04.

gstrauss (gstrauss) wrote :

lighttpd 1.4.42 includes mod_deflate, which can compress dynamically generated content, including that generated by mod_ssi. mod_deflate runs after the response has been prepared, as opposed to mod_compress, which (due to historic implementation) runs before the handlers/generators.

gstrauss (gstrauss) on 2020-09-23
Changed in lighttpd (Ubuntu):
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.