03 autoindex styling.patch (610B)
- diff --git a/src/http/modules/ngx_http_autoindex_module.c.old b/src/http/modules/ngx_http_autoindex_module.c
- index 18c7570..94176b4 100644
- --- a/src/http/modules/ngx_http_autoindex_module.c.old
- +++ b/src/http/modules/ngx_http_autoindex_module.c
- @@ -448,8 +448,9 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
- ;
- static u_char header[] =
- - "</title></head>" CRLF
- - "<body>" CRLF
- + "</title>" CRLF
- + "<style>td{font-family:monospace;}td:nth-child(3){text-align:right;}</style>" CRLF
- + "</head><body>" CRLF
- "<h1>Index of "
- ;