libwebsockets/lib
Andy Green b490079b47 vhost: add 404 handler url option
This allows you to set a 404 handler URL on a vhost.

The necessary user code looks like...

    info.error_document_404 = "/404.html";

... at vhost-creation time.

In the existing lws_return_http_status() api, if it sees
the vhost has an "error_document_404" path set and that
we are trying to report a 404, it changes the action
instead to a redirect to the error_document_404 path.

The redirect target is returned using 404 status code.

If the redirect target doesn't exist, then it falls back
to just reporting the simple canned 404.
2018-03-08 09:01:14 +08:00
..
client h1: header parsing optimizations 2018-03-07 18:19:10 +08:00
event-libs pthreads: more locking 2018-03-05 16:49:28 +08:00
ext minimal-examples: add ws pmd example 2018-03-06 09:39:27 +08:00
http2 h1: header parsing optimizations 2018-03-07 18:19:10 +08:00
jws plat: add extra helpers hiding ESP32 quirks 2017-12-01 11:37:36 +08:00
misc esp32: map basic auth to nvs 2018-02-24 08:14:17 +08:00
plat pthreads: more locking 2018-03-05 16:49:28 +08:00
server vhost: add 404 handler url option 2018-03-08 09:01:14 +08:00
tls smp: fixes 2018-03-02 19:19:36 +08:00
alloc.c acme: adaptations through plat for esp32 2017-12-11 13:30:12 +08:00
context.c vhost: add 404 handler url option 2018-03-08 09:01:14 +08:00
handshake.c internal close api: add caller id 2018-02-03 13:54:29 +08:00
header.c vhost: add 404 handler url option 2018-03-08 09:01:14 +08:00
lextable-strings.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
lextable.h parser: add x-auth-token 2017-12-01 11:37:36 +08:00
libwebsockets.c pthreads: more locking 2018-03-05 16:49:28 +08:00
libwebsockets.h vhost: add 404 handler url option 2018-03-08 09:01:14 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c close: add LWSS_WAITING_TO_SEND_CLOSE_NOTIFICATION allowed to send 2018-01-23 07:01:21 +08:00
pollfd.c h1: header parsing optimizations 2018-03-07 18:19:10 +08:00
private-libwebsockets.h vhost: add 404 handler url option 2018-03-08 09:01:14 +08:00
service.c pthreads: more locking 2018-03-05 16:49:28 +08:00