two root server.document-root in conf file
Added by rishu1 over 14 years ago
Hy ,
My problem is that i m using lighttpd and behind that i have cherrypy server as proxy.
Earlier the content that is static(image or javascript) is served directly by lighttpd as i have set the path of server.document-root to that folder and other contents which were dynamic are served by cherrypy.
But now i have two folder in which static content are presentthat do not change, and according to the condition i have to choose the folder. But both has to be served by lighttpd. How can my purpose be served.
Thanks .
Replies (2)
RE: two root server.document-root in conf file - Added by rishu1 over 14 years ago
server.document-root ="D:/MSDEV/SVN_TR_DEV/dev/build"
$HTTP["url"]=~"^/download"{
server.document-root=server.document-root+"/download"
}
$HTTP["url"]=~"^/static"{
server.document-root=server.document-root+"/webui/radspeed"
}
$HTTP["url"]!~"^/download"{
$HTTP["url"]!~"^/static"{
proxy.server =(
""=>(
(
"host" => "127.0.0.1",
"port" => 8089
)
)
)
}
}
I rewrite the code of proxy in this way .
The contents in the web/radspeed/are working fine.But the contents in the download are not called by it.
Why only one of the file contents are called not the others.
Thanks.
RE: two root server.document-root in conf file - Added by solobot over 14 years ago
maybe it searches files in /download/download ?
if url was ex.com/download/files/file1.gif and you changed doc root from "D:/MSDEV/SVN_TR_DEV/dev/build" to "D:/MSDEV/SVN_TR_DEV/dev/build/download" than lighty just substitutes path to D:/MSDEV/SVN_TR_DEV/dev/build/download/download/files/file1.gif