Bug 20200

Summary: For lighttpd, when enabling ssi.conf in modules.conf, SSI fails
Product: Mageia Reporter: Hoyt Duff <hoyt>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: jani.valimaa, marja11
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: lighttpd CVE:
Status comment:

Description Hoyt Duff 2017-01-29 03:20:23 CET
When enabling SSI in modules.conf, the included file ssi.conf fails to add "index,shtml" to lightppd.con in index-file.names (line 328, "Filename/File handling) causing Server Side Includes to fail.

If I manually add ".shtml" to that line, SSI works.

Example of working SSI for line 328, lighttpd.conf:

index-file.names += (                                                                                                                                                                                         
  "index.xhtml", "index.html", "index.htm", "default.htm", "index.php", "index.shtml"                                                                                                                         
) 

Adding ".shtml" as default (as above) causes no problems I can detect when ssi.conf is not enabled.
Comment 1 Jani Välimaa 2017-01-29 09:17:51 CET
What if you add the following into ssi.conf after server.modules line (and remove modifications from lighttpd.conf)?

index-file.names += ( "index.shtml" )

CC: (none) => jani.valimaa

Marja Van Waes 2017-01-29 10:10:00 CET

Keywords: (none) => NEEDINFO
CC: (none) => marja11
Assignee: bugsquad => shlomif
Source RPM: (none) => lighttpd

Comment 2 Jani Välimaa 2017-01-29 12:46:59 CET
(In reply to Jani Välimaa from comment #1)
> What if you add the following into ssi.conf after server.modules line (and
> remove modifications from lighttpd.conf)?
> 
> index-file.names += ( "index.shtml" )

Updated lighttpd to 1.4.45 and added a patch that adds line I mentioned to ssi.conf.

A freeze push is also requested to get updated lighttpd pushed to build system.
Comment 3 Hoyt Duff 2017-01-29 17:10:57 CET
Thank you!
Comment 4 Jani Välimaa 2017-01-30 10:23:12 CET
Closing as FIXED. Feel free to reopen if needed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED