Newer
Older
Beautiful_listing / nginx / nginx.conf
@Andrew Molchanov Andrew Molchanov on 1 Feb 2020 386 bytes added nginx template
location / {
	autoindex on;
	autoindex_localtime on;
	autoindex_exact_size off;
	sub_filter '<html>' '';
	sub_filter '<head><title>Index of $uri</title></head>' '';
	sub_filter '<body>' '';
	sub_filter '<h1>Index of $uri</h1><hr>' '';
	sub_filter '<hr></body>' '';
	sub_filter '</html>' '';
	sub_filter_once on;
	add_before_body /.html/header.html;
	add_after_body /.html/footer.html;
}