logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

03 autoindex styling.patch (610B)


  1. diff --git a/src/http/modules/ngx_http_autoindex_module.c.old b/src/http/modules/ngx_http_autoindex_module.c
  2. index 18c7570..94176b4 100644
  3. --- a/src/http/modules/ngx_http_autoindex_module.c.old
  4. +++ b/src/http/modules/ngx_http_autoindex_module.c
  5. @@ -448,8 +448,9 @@ ngx_http_autoindex_html(ngx_http_request_t *r, ngx_array_t *entries)
  6. ;
  7. static u_char header[] =
  8. - "</title></head>" CRLF
  9. - "<body>" CRLF
  10. + "</title>" CRLF
  11. + "<style>td{font-family:monospace;}td:nth-child(3){text-align:right;}</style>" CRLF
  12. + "</head><body>" CRLF
  13. "<h1>Index of "
  14. ;