lighttpd添加虚拟主机错误

我试图有多个域名。 遵循Web的指示,并在lighttpd.conf文件中添加行:

$ HTTP [“host”] =〜“(^ |。)example.com $”{server.document-root =“/var/www/example.com”}

但是当我重新启动服务器时出现错误:

(configfile.c.859)source:/etc/lighttpd/lighttpd.conf line:37 pos:13variables名无效字符2012-02-15 07:38:57:(configfile.c.915)configfileparsing器失败:=〜

我到处都有人物〜我不知道为什么现在不能parsing它们。 我正在使用Debian 6

我在你发布的内容中看到了一些非标准的引号(开引号,closures引号等等),我认为这就是lighttpd正在做的事情:

$HTTP["host"] =~ “(^|.)example.com$” { server.document-root = “/var/www/example.com″ }

改为:

$HTTP["host"] =~ "(^|.)example.com$" { server.document-root = "/var/www/example.com" }