Project

General

Profile

Actions

Bug #1407

closed

Something wrong in configuration handling

Added by Anonymous over 15 years ago. Updated over 14 years ago.

Status:
Invalid
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

I just found that order of configuration options somehow matters in lighttpd.conf.

When I use following, http://localhost/phpmyadmin/ works:


alias.url += (
        "/phpmyadmin" => "/usr/share/phpmyadmin",
)
$HTTP["remoteip"] == "127.0.0.1" {
        alias.url += (
                "/doc/" => "/usr/share/doc/",
                "/images/" => "/usr/share/images/",
        )
}

But when I move the /phpmyadmin alias behind remote IP check, http://localhost/phpmyadmin/ is not resolved as not found:


$HTTP["remoteip"] == "127.0.0.1" {
        alias.url += (
                "/doc/" => "/usr/share/doc/",
                "/images/" => "/usr/share/images/",
        )
}
alias.url += (
        "/phpmyadmin" => "/usr/share/phpmyadmin",
)

-- nijel

Actions #1

Updated by darix over 15 years ago

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

works as designed:
see "lighttpd -tp -f /path/to/conf".

Actions #2

Updated by stbuehler over 14 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom