Just started playing around with lighttpd and I'm trying to figure out
how to get it to serve my static content while letting pylons do the
fun stuff. Here is a copy of my config. This works but I wanted to see
how others are using lighttpd.
|
# set up folders and files to serve with lighttpd
static_folders = "^/img/|^/static|^/static2"
hidden_static_folders = "^/css"
static_pages = "\.html|\.jpg|\.png|\.gif"
# enable dir listing for some folders
$HTTP["url"] =~ static_folders {
dir-listing.activate = "enable"
}
# make sure dirlisting stays off for some folders
$HTTP["url"] =~ hidden_static_folders {
dir-listing.activate = "disable"
}
# if its not static content let pylons handle the request
$HTTP["url"] !~ static_folders + "|" + hidden_static_folders + "|" +
static_pages {
proxy.server = ( "" => (
("host"=>"127.0.0.1",
"port"=>5000)
)
)
}|
Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---