OpenVBX and Lighttpd

by Richard Kolkovich

I run my web server on Lighttpd to keep things clean. Being the red-headed stepchild of the web server world, I’ve had some minor hurdles to overcome over the years (I’ll contemplate switching if I hit a big one…). Wanting to take advantage of the awesomeness that is Twilio through OpenVBX, I found no one who had done this with lighttpd. All you have to do is enable mod_redirect:

server.modules = ( "mod_redirect", )

And configure a redirect thusly:

$HTTP["host"] =~ "" {
	url.rewrite = (
		"^/(.*)/index.php(.*)$" => "/$1/index.php?vbxsite=$2",