Certifique-se de que "api.example.com" seja resolvido para o IP do seu servidor no DNS.
$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"
}
Acima está um extrato do meu lighttpd.conf. example.com e example.org estão funcionando bem. Alguma idéia do porquê o api.example.com se recusa a trabalhar?
Obrigado!
Tags virtualhost lighttpd subdomain