Installation Lighttpd vhost设置对子目录有效
我有下面的映射设置来处理子目录,但是有了这个更改lighttpd无法启动,有什么问题吗?我在哪里可以找到lighttpd的系统日志 [root@localhostlog]#/etc/init.d/lighttpd start verbose 启动lighttpd(通过systemctl):作业失败。有关详细信息,请参阅系统日志和“系统CTL状态”Installation Lighttpd vhost设置对子目录有效,installation,syntax-error,lighttpd,Installation,Syntax Error,Lighttpd,我有下面的映射设置来处理子目录,但是有了这个更改lighttpd无法启动,有什么问题吗?我在哪里可以找到lighttpd的系统日志 [root@localhostlog]#/etc/init.d/lighttpd start verbose 启动lighttpd(通过systemctl):作业失败。有关详细信息,请参阅系统日志和“系统CTL状态” $SERVER["socket"] == "0.0.0.0:443" { ssl.engine = "enabl
$SERVER["socket"] == "0.0.0.0:443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/ssl/api.testdomain.com.pem"
ssl.ca-file = "/etc/lighttpd/ssl/sub.class1.server.ca.pem.cer"
$HTTP["host"] =~ "^api\.testdomain\.com" {
$HTTP["url"] =~ "^/[^/]*\.json$" {
server.name = "api.testdomain.com"
server.errorlog = "/var/log/lighttpd/testdomain.com/server_error_443.log"
accesslog.filename = "/var/log/lighttpd/testdomain.com/server_access_443.log"
proxy.server = ( "" => ( ("host" => "127.0.0.1", "port" => 9001) ) )
}
else $HTTP["url"] = "^/v2/*\.json$" {
server.name = "api.testdomain.com"
server.errorlog = "/var/log/lighttpd/testdomain.com/server_error_443.log"
accesslog.filename = "/var/log/lighttpd/testdomain.com/server_access_443.log"
proxy.server = ( "" => ( ("host" => "127.0.0.1", "port" => 9004) ) )
}
}
}
这样一个经典错误:)您将=
而不是=
else $HTTP["url"] == "^/v2/*\.json$" {
我试过了,得到了准确的行/列错误,而不是您的“作业失败”:
2012-03-24 10:26:31: (configfile.c.564) source: /etc/lighttpd/sites/test.fr line: 13 pos: 20 only =~ and == are allowed in the condition