1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-server
Andy Green f6ae0edf8d strict host check vhost flag
https://github.com/warmcat/libwebsockets/issues/1423

If you vhost->options has the flag LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK,
then if the server is sent an upgrade request, the content of the Host: header is
required to match the vhost name + port.  The port is set to the well-known values
of 80 and 443 if no :port on the host: value, depending on tls or not on the
connection.

minimal-ws-server can now take a -h flag to set this.  lejp-conf (eg, lwsws) can now take
a flag strict-host-check on the vhost to enable it as well.
2018-11-13 09:55:06 +08:00
..
minimal-http-server refactor: most preparation for -DLWS_ROLE_H1=0 2018-04-27 19:16:50 +08:00
minimal-http-server-basicauth auth: record basic auth user 2018-10-02 10:52:09 +08:00
minimal-http-server-dynamic codacy: minor fixes 2018-10-13 08:16:27 +08:00
minimal-http-server-eventlib hrtimer: add support for libevent and libev 2018-05-02 19:27:33 +08:00
minimal-http-server-eventlib-demos codacy: minor fixes 2018-10-13 08:16:27 +08:00
minimal-http-server-eventlib-foreign hrtimer: add support for libevent and libev 2018-05-02 19:27:33 +08:00
minimal-http-server-form-get libwebsockets.h: clean out some boilerplate better put in core/private.h 2018-08-16 19:10:32 +08:00
minimal-http-server-form-post libwebsockets.h: clean out some boilerplate better put in core/private.h 2018-08-16 19:10:32 +08:00
minimal-http-server-form-post-file codacy: minor fixes 2018-10-13 08:16:27 +08:00
minimal-http-server-fulltext-search lws_diskcache: split generic parts from gitohashi into lws 2018-11-12 15:24:42 +08:00
minimal-http-server-mimetypes minimal-http-server-mimetypes 2018-05-05 06:03:16 +08:00
minimal-http-server-multivhost minimal-http-server-multivhost: add --die-after-vhost option 2018-06-20 16:36:22 +08:00
minimal-http-server-smp docs: adjust lost image links 2018-09-19 10:22:21 +08:00
minimal-http-server-sse refactor: most preparation for -DLWS_ROLE_H1=0 2018-04-27 19:16:50 +08:00
minimal-http-server-sse-ring refactor: core code in lib/core and private-libwebsockets.h to core/private.h 2018-05-03 10:49:36 +08:00
minimal-http-server-tls strict host check vhost flag 2018-11-13 09:55:06 +08:00
minimal-http-server-tls-80 minimal: kill stray symlink 2018-07-19 15:58:24 +08:00
README.md fulltext search 2018-10-26 13:53:28 +08:00

Example Demonstrates
minimal-http-server-basicauth Shows how to protect a mount using a password file and basic auth
minimal-http-server-dynamic Serves both static and dynamically generated http content
minimal-http-server-eventlib-foreign Demonstrates integrating lws with a foreign event library
minimal-http-server-eventlib-demos Using the demo plugins with event libraries
minimal-http-server-eventlib Same as minimal-http-server but works with a supported event library
minimal-http-server-form-get Process a GET form
minimal-http-server-form-post-file Process a multipart POST form with file transfer
minimal-http-server-form-post Process a POST form (no file transfer)
minimal-http-server-fulltext-search Demonstrates using lws Fulltext Search
minimal-http-server-mimetypes Shows how to add support for additional mimetypes at runtime
minimal-http-server-multivhost Same as minimal-http-server but three different vhosts
minimal-http-server-proxy Reverse Proxy
minimal-http-server-smp Multiple service threads
minimal-http-server-sse-ring Server Side Events with ringbuffer and threaded event sources
minimal-http-server-sse Simple Server Side Events
minimal-http-server-tls-80 Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler, redirect to https on port 80
minimal-http-server-tls Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler
minimal-http-server Serves a directory over http/1, custom 404 handler