13 Dec 22:24
mod_alias vs. conditinal configuration
From: Steve Greenland <steveg <at> moregruel.net>
Subject: mod_alias vs. conditinal configuration
Newsgroups: gmane.comp.web.lighttpd
Date: 2007-12-13 21:27:03 GMT
Subject: mod_alias vs. conditinal configuration
Newsgroups: gmane.comp.web.lighttpd
Date: 2007-12-13 21:27:03 GMT
This is regarding to http://trac.lighttpd.net/trac/ticket/1427 The problem is that this config snippet: alias.url += ( "/a/" => "/home/olaf/a/" ) $HTTP["remoteip"] == "127.0.0.1" { alias.url += ( "/doc/" => "/usr/share/doc/" ) } alias.url += ( "/b/" => "/home/olaf/b/" ) Does not do what anyone not familiar with lighttpd internals would expect: the alias for "/b/" doesn't work. Moving it before the conditional works. (When accessing via localhost). The first reply to the ticket, from "moo", claims that this is intentional. If so, it's a really strange decision, and undocumented. Anyone want to comment? Jan? Regards, Steve -- -- Steve Greenland The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world. -- seen on the net
RSS Feed