Ticket #1532 (closed defect: wontfix)

Opened 8 months ago

Last modified 10 days ago

Lighttpd fails to start when using the same $HTTP["host"] match in an IF/ELSE form

Reported by: calimonk@… Owned by: jan
Priority: low Milestone: 1.5.0
Component: core Version: 1.4.18
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

While adjusting a vhost i have, i encountered that Lighttpd wouldn't start anymore giving an odd error. The reason was quite clear:

$HTTP["host"] =~ "^www\.(mydomain\.co\.uk)(:[0-9]+)?$" {
# Do bla
}

else $HTTP["host"] =~ "^www\.(mydomain\.co\.uk)(:[0-9]+)?$" {
# Do bla
}

else $HTTP["host"] =~ "^(.+\.)?(mydomain\.co\.uk)(:[0-9]+)?$" {
# Redirect the rest
        url.redirect = ( ".*" => "http://www.%2/" )
}

When restarting Lighttpd i get the following error: lighttpd: ./configparser.y:349: yy_reduce: Assertion `yymsp[-3].minor.yy78->context_ndx < yymsp[0].minor.yy78->context_ndx' failed.

Reason is quite simple, i'm using the same IF and ELSE case, however it shouldn't really matter that I do so (even if it makes no sense).

Attachments

Change History

Changed 10 days ago by stbuehler

  • status changed from new to closed
  • resolution set to wontfix

This is a configparser design problem - we won't fix it in 1.4.x as it is not needed if your config makes sense.

Add/Change #1532 (Lighttpd fails to start when using the same $HTTP["host"] match in an IF/ELSE form)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.