Here's my issue:
I have a CentOS 6.6 VSFTP server here setup using virtual user accounts. When users connect to the FTP server and attempt to download a .txt file, .pdf, or other document, their browser opens it in a new tab instead of downloading/saving it. I'd like to force files open in this FTP server to automatically be downloaded, specifically .txt files.
FTP root directory is /ftp, though virtual users are chrooted in their home directories. Directory structure is:
I've followed about a dozen different links of people posting similar issues, mostly related to creating a .htaccess file in the ftp root directory with the following (or similar) contents; however, I've had no success.
Header set Content-Disposition attachment
Is there a solution to this problem that will work with VSFTP?
Thank you for your time.