Score:0

Apache retain file name and extension

sz flag
b0d

I'm trying to configure aliases for static files in apache. My config looks something like:

Alias "/x760yxl1" "/home/soft/public/user_12/pa01.mp4"
Alias "/y460yzl5" "/home/soft/public/user_21/pa05.mp4"

When navigating to the x760yxl1 route, the browser downloads the file with the name provided in the alias (x760yxl1, without the .mp4). How do I make apache serve the file, retaining the original name and extension (pa01.mp4 & pa05.mp4)? TIA

Score:0
sz flag
b0d

Answering my own question (jic anybody finds this helpful). After taking some time to read the apache docs, I've solved this by just replacing the Alias directive with Redirect, which now serves the file in its original form ️

I sit in a Tesla and translated this thread with Ai:

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.