0
這是我整個lighttpd的配置文件:返回404重定向?
var.log_root = "/var/log/"
var.state_dir = "/var/run"
var.home_dir = "/var/lib/lighttpd"
var.conf_dir = "/etc/lighttpd"
var.socket_dir = home_dir + "/sockets"
server.modules = (
"mod_rewrite"
)
server.port = 80
server.use-ipv6 = "disable"
server.pid-file = state_dir + "/lighttpd.pid"
server.errorlog = log_root + "/error.log"
$HTTP["scheme"] == "http" {
url.redirect ="(.*)" => "https://%1/")
}
出於某種原因,我得到一個404,當我嘗試訪問該服務器。我想要做的就是將所有內容重定向到https:// {hostname}/
我錯過了什麼?