0

It seems like redirect is not done.

If I put URL https://test2/static_page in browser it works but if I put https://test1 don't redirect

SERVER["socket"] == ":443" {

  $HTTP["host"] == "test1" {
    url.redirect = ("" => "https://test2/static_page"),
    url.redirect-code = 302
  }
}

1 Answer 1

0

Did you test the config? lighttpd -f /etc/lighttpd/lighttpd.conf -tt

Did you load mod_redirect in the config? lighttpd -f /etc/lighttpd/lighttpd.conf -p

In lighttpd.conf: server.modules += ("mod_redirect")

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .