Projects tigase _server tigase-http-api Issues #116
Limiting list of VHosts doesn't work for JDK based http-server (#116)
wojciech.kapcia@tigase.net opened 3 years ago

Following configuration:

http () {
    rest () {
        vhosts = [ 'tigase.org' ]
    }
}

doesn't work with JDK based http-server (only works with Jetty)

The documentation (https://docs.tigase.net/tigase-server/master-snapshot/Administration_Guide/html/#_list_of_virtual_hosts) is not clear that it's supposed to limit requests based on Host header.

  1. fix http-api based on JDK http server
  2. reword the documentation to make it more explicit, e.g.: "This provides the ability to limit modules to be available only on listed hosts (i.e. Host header from HTTP request and not VHost against which the request is made), and allows to set context path to / for more than one module. Property accepts list of strings, which in the case of config.tdsl file format is list of comma separated domain names and in DSL it is written as list of strings"
Andrzej Wójcik (Tigase) commented 3 years ago

I've implemented this feature.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.2.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#116
Please wait...
Page is in error, reload to recover