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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.