mod_ssi do not work when mod_compress is active

Bug #264349 reported by Giuseppe Sacco
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lighttpd (Debian)
Fix Released
Unknown
lighttpd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lighttpd

Hi,
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.

Bye,
Giuseppe

Changed in lighttpd:
status: Unknown → New
Revision history for this message
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 = (
            "mod_access",
            "mod_alias",
            "mod_accesslog",
# load mod_ssi before mod_compress or ssi won't work.
            "mod_ssi",
            "mod_compress",
# "mod_rewrite",
# "mod_redirect",
# "mod_status",
# "mod_evhost",
# "mod_usertrack",
# "mod_rrdtool",
# "mod_webdav",
# "mod_expire",
# "mod_flv_streaming",
# "mod_evasive"
 )

Revision history for this message
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
Revision history for this message
Horst Schirmeier (horst) wrote :

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

Revision history for this message
Thomas Petazzoni (thomas-petazzoni) wrote :

Still broken in Ubuntu 13.04.

Revision history for this message
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)
Changed in lighttpd (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
gstrauss (gstrauss) wrote :

lighttpd 1.4.59 is part of Ubuntu 21.04 (Hirsute Hippo)

mod_compress has been subsumed by mod_deflate

Changed in lighttpd (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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