What is the difference between the following? Both work the same way from what I can tell/use it for
$HTTP["host"] =~ "a.domain.com" {
server.document-root = "/var/www/a/"
}
$HTTP["host"] == "a.domain.com" {
server.document-root = "/var/www/a/"
}
Would the =~ match x.a.domain.com?
The right-hand side of
=~is a regular expression.x.a.domain.comwould not match the regular expressiona.domain.com.Examples that would match:
axdomain.comaxdomainxcomaydomainycoma1domain1comIs the example from a real-world example? It seems kinda pointless.
Something like this could be more meaningful:
Meaning, serve all requests to *.somedomain.com from
/var/www/somedomain.com/This page has some more realistic examples with regex matching:
http://redmine.lighttpd.net/boards/2/topics/2518