mod_ssi do not work when mod_compress is active
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 |
Changed in lighttpd (Debian): | |
status: | New → Incomplete |
Changed in lighttpd (Debian): | |
status: | Incomplete → Fix Released |
Changed in lighttpd (Ubuntu): | |
status: | New → Confirmed |
Changed in lighttpd (Ubuntu): | |
status: | Confirmed → Fix Committed |
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" ,
"mod_ ssi",
"mod_ compress" , streaming" ,
# 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_
# "mod_evasive"
)