Score:0

How to configure a domain on Apache (using apache2.conf or .htaccess) to point to a file that must be downloaded?

sa flag

I have a domain (let's call it mydomain.com).

I already configured the apache on my server, so when I open mydomain.com, the apache landing page appears. Fine.

I put a file (let's call it myfile.zip) on my document root.

What I need is: When the user access mydomain.com, his browser prompt to download myfile.zip

I have more than one domain configured on this server, but this behaviour should work only for mydomain.com

How to achieve this?

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.