Score:0

Nginx make symlinks in autoindex link to their files but retain their name

cn flag

I wanted a way for me to easily just rsync a directory up to my server and have a 'for short' way to download a file. Aka

d/foo1 > ../download/very-long-file-name.zip

I want auto index to retain the name 'foo1' in the HTML it sends over but for the href to link to download/very-long-file-name.zip. Currently the symlink does work as I enabled symlinks in my nginx.conf but it simply just downloads foo1 which contains the correct content but has no file extension or the right name.

Is this possible or will I have to create my own PHP autoindex script.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.