HTML5-compliant autoindex page.

This commit is contained in:
Eugene Grebenschikov 2026-01-23 16:08:38 -08:00
parent 4f872521bc
commit f68065d30d

View file

@ -444,8 +444,13 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
ngx_http_autoindex_loc_conf_t *alcf;
static u_char title[] =
"<html>" CRLF
"<head><title>Index of "
"<!DOCTYPE html>" CRLF
"<html lang=\"en\">" CRLF
"<head>" CRLF
"<style>" CRLF
"html { color-scheme: light dark; }" CRLF
"</style>" CRLF
"<title>Index of "
;
static u_char header[] =