gustafn
committed
on 11 Jun
Updated location handling

- make use of "ns_server hosts" when available
- refactored and simplified code
- keep validated locations in an … Show more
Updated location handling

- make use of "ns_server hosts" when available

- refactored and simplified code

- keep validated locations in an nsv array

- added support for extra white-listed hosts

 in case, every other configuration fails

 (should not be necessary)

      ns_section ns/server/$server/acs {

           ns_param whitelistedHosts {...}

      }

- updated inline documentation

The new code is supposed to handle in combination of a recent NaviServer

all complex host header validation scenarios, include running behind a proxy,

in a container or cluster.

Show less