Welcome to WebmasterWorld Guest from 54.145.166.247

Forum Moderators: phranque

Message Too Old, No Replies

lighttd development env returns 404 on images

lighttd

   
7:35 pm on Jan 13, 2009 (gmt 0)

5+ Year Member



Im using lighttd as part of my development env but its not accessing images inside my webside locally. I've been told to remove this part from the .conf:

$HTTP["remoteip"] == "127.0.0.1" {
alias.url += (
"/doc/" => "/usr/share/doc/",
"/images/" => "/usr/share/images/"
)
$HTTP["url"] =~ "^/doc/¦^/images/" {
dir-listing.activate = "enable"
}
}

but still it's not working, the server is running, fastcgi is working fine, I can run php just fine, but all images other static files are not being served, Im getting 404 on all static content:

::ffff:127.0.0.1 eteneo.local - [13/Jan/2009:20:29:53 +0100] "GET /mysite/css/styles.css HTTP/1.1" 404 2317 "http://local/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5"
::ffff:127.0.0.1 eteneo.local - [13/Jan/2009:20:29:54 +0100] "GET /mysite/images/file.png HTTP/1.1" 404 2317 "http://local/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5"

Any idea what I have to do?