2

I'm trying to have multiple domains. Followed the instructions from web and added the lines in lighttpd.conf file:

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

but when I restart the server I get the error:

(configfile.c.859) source: /etc/lighttpd/lighttpd.conf line: 37 pos: 13 invalid character in variable name 2012-02-15 07:38:57: (configfile.c.915) configfile parser failed at: =~

Everywhere I see there characters =~ and I don't know why it won't parse them now. I'm using Debian 6

cikatomo
  • 149
  • 4

1 Answers1

2

I'm seeing some non-standard quotation marks (open-quote, close-quote, and something else) in what you've posted, and I think this is what lighttpd is barfing on:

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

Try instead:

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

Lars Rohrbach
  • 428
  • 4
  • 12