[Bug 396055] [NEW] Lighttpd web application development disturbance through aliasing on 127.0.0.1
tobyS
tobias at schlitt.info
Mon Jul 6 09:29:33 UTC 2009
Public bug reported:
Binary package hint: lighttpd
This bug affects Ubuntu 9.04, package Lighttpd in version
1.4.19-5ubuntu7
In the default lighttpd.conf there is a global section to alias /images/
to /usr/share/images/. This breaks all local /images/ folders in web
development projects.
$HTTP["remoteip"] =~ "127.0.0.1" {
alias.url += (
"/doc/" => "/usr/share/doc/",
"/images/" => "/usr/share/images/"
)
$HTTP["url"] =~ "^/doc/|^/images/" {
dir-listing.activate = "enable"
}
}
I'd suggest to add another condition around this aliases, which check
for the host name in addition. This way, users who use different host
names that localhost for their projects to not run into this issue.
$HTTP["host"] = "localhost" {
$HTTP["remoteip"] =~ "127.0.0.1" {
alias.url += (
"/doc/" => "/usr/share/doc/",
"/images/" => "/usr/share/images/"
)
$HTTP["url"] =~ "^/doc/|^/images/" {
dir-listing.activate = "enable"
}
}
}
** Affects: lighttpd (Ubuntu)
Importance: Undecided
Status: New
--
Lighttpd web application development disturbance through aliasing on 127.0.0.1
https://bugs.launchpad.net/bugs/396055
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list