Bug #1533

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

Added by Anonymous 349 days ago. Updated 126 days ago.

Status:Fixed Start:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:core
Target version:1.5.0
Pending:

Resolution:

duplicate


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 < yymspr0.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).

-- calimonk

History

02/15/2008 10:16 PM - Anonymous

Replying to :

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

{{{ $HTTPhost =~ "^www\.(mydomain\.co\.uk)(:0-9+)?$" {
  1. Do bla }
else $HTTPhost =~ "^www\.(mydomain\.co\.uk)(:0-9+)?$" {
  1. Do bla }
else $HTTPhost =~ "^(.+\.)?(mydomain\.co\.uk)(:0-9+)?$" {
  1. 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 < yymspr0.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).

02/18/2008 06:53 PM - stbuehler

  • Status changed from New to Fixed
  • Resolution set to duplicate

#1532 double post

Also available in: Atom PDF