Lighttpd子域名

$HTTP["host"] == "example.com" { server.document-root = "/var/www/vhosts/example.com/httpdocs/development/api" server.errorlog = "/var/log/lighttpd/error.log" accesslog.filename = "/var/log/lighttpd/access.log" } $HTTP["host"] == "api.example.com" { server.document-root = "/var/www/vhosts/example.com/httpdocs/development/api" server.errorlog = "/var/log/lighttpd/error.log" accesslog.filename = "/var/log/lighttpd/access.log" } $HTTP["host"] == "example.org" { server.document-root = "/var/www/vhosts/example.com/httpdocs/development/services" server.errorlog = "/var/log/lighttpd/error.log" accesslog.filename = "/var/log/lighttpd/access.log" } 

以上是我的lighttpd.conf的摘录。 example.com和example.org工作正常。 任何想法为什么api.example.com拒绝工作?

谢谢!

确保“api.example.com”parsing为您的服务器在DNS中的IP。