How to use Plone with lighttpd
Up to Table of ContentsThis FAQ applies to: Any version.
Here's an example lighttpd proxy setup:
url.rewrite-once = ( "^/(.*)$" =>
"/VirtualHostBase/http/www.example.com:80/example/VirtualHostRoot/$1" )
proxy.server = ( "/VirtualHostBase/" => ( ( "host" => "127.0.0.1" ,
"port" => 8000 ) ) )
This makes use of Zope's Virtual Host Monster object that should be in your root folder. We specify a proxy prefix because some of the hosts exclude certain paths from the proxy. For example:
url.rewrite-once = (
"^/misc/.*" => "$0",
"^/(.*)$" =>
"/VirtualHostBase/http/www.example.com:80/example/VirtualHostRoot/$1" )
So, URLs like http://www.example.com/misc/otherpage.html will be served from the file system; everything else goes to Zope.
Taken from http://forum.lighttpd.net/topic/183