Somebody now how to use an own header with fancyindex ?
Without "fancyindex_header" everything is ok and i see 10 direcoties, but i want to use an own header.
I try this:
location / {
fancyindex on;
fancyindex_exact_size on;
fancyindex_header /my_header.html;
}
File: my_header.html
---
Hello World!
---
But then i did not see any directory listing, only
--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><style type="text/css">body,html {background:#fff;font-family:"Bitstream Vera Sans","Lucida Grande","Lucida Sans Unicode",Lucidux,Verdana,Lucida,sans-serif;}tr.e {background:#f4f4f4;}th,td {padding:0.1em 0.5em;}th {text-align:left;font-weight:bold;background:#eee;border-bottom:1px solid #aaa;}#list {border:1px solid #aaa;width:100%;}a {color:#a33;}a:hover {color:#e33;}</style>
<title>Index of /</title>
</head><body><h1>Index of </body></html>
--
nginx 1.0.8
fancyindex 0.3.1