---
title: "Lighttpd设置虚拟主机与Jsp连接"
author: "Arden"
date: "2008-05-21T08:55:39Z"
tags: []
slug: "lighttpd-jsp"
draft: false
lastmod: "2008-05-21T08:55:39Z"
id: 206961
url: "https://arden.iteye.com/blog/206961"
---

$HTTP\["host"] == “www.iding.com” {  url.rewrite-once = (”^/$” =&gt; “/index.jsp”)  server.document-root = ” /data/webapps/www/www.iding.com”   proxy.balance = “hash”   proxy.server  = ( “” =&gt;            ( (             ”host” =&gt; “127.0.0.1″,             ”port” =&gt; 8001            ) )                     ) } $HTTP\["host"] == “shop.iding.com” {  url.rewrite-once = (”^/$” =&gt; “/index.jsp”)  server.document-root = ” /data/webapps/www/shop.iding.com”   proxy.balance = “hash”   proxy.server  = ( “” =&gt;            ( (             ”host” =&gt; “127.0.0.1″,             ”port” \[...]