tshering
Thanks for your assistance, it's greatly appreciated.
After all the things i've tried, asked and did looks like finally i've made a script that does what i wanted it to do. It has some flaws (like if server has a dir present - it'll probably won't work but after all it's just a 'i'm lazy, i don't want to connect my USB' kind of script i think it's ok)
So, if somebody ever needs exact same thing i did - here's the listing
Note: script is adapted to nginx 1.9.0 with autoindex enabled, all the books should be placed in /html (aka root) nginx directory. Provided as-is, not guaranteed to work ('cause i'm bad at scripting), but at least for me it does.
Thanks for all the help i got here