nginx autoindex and apaxy

# I advise you to download apaxy + http://adrhc.go.ro/public/apaxy_for_nginx.js 
# then replace the urls below with the ones for your server.
# Possible values for:
# defaultSortProperty (string): "name", "parsedDate", "size"
# isDescSort (boolean): true/false
# apaxyIconsRoot (string): the root of apaxy icons dir (e.g. /apaxy/theme/icons/ -> ending slash matters!)
autoindex				on;
autoindex_exact_size	off;
add_before_body			http://adrhc.go.ro/apaxy-20150401/theme/header.html;
add_after_body			http://adrhc.go.ro/apaxy-20150401/theme/footer.html;
sub_filter				</body>	'<link href="http://adrhc.go.ro/apaxy-20150401/theme/style.css" rel="stylesheet"><script src="http://adrhc.go.ro/public/apaxy_for_nginx.js"></script><script>apaxyPatchForNginx.setDescSort(false);apaxyPatchForNginx.setDefaultSortProperty("name");apaxyPatchForNginx.setApaxyIconsRoot("http://adrhc.go.ro/apaxy-20150401/theme/icons/");apaxyPatchForNginx.doApaxy();</script></body>';
	sub_filter_last_modified	on;

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.