0

I've got a webserver from Vultr running on CentOS Stream 9. The files I want people to be able to download are stored on a separate hard drive mounted to /mnt/box/public/. I've set Apache to host it as a file index. Apache won't allow downloading the files, but instead displays them as text. This isn't a problem if the files are stored in Apache's web folder /var/www/ but I want the files to be on the other drive.

I'm quite new to Linux stuff. I tried disabling SELinux and following this guide, but neither fixed it.

1
  • Welcome to the community. I edited your question for clarity and readability. Please check, and correct any possible errors. Commented Feb 5, 2023 at 15:12

1 Answer 1

0

Figured it out.

Trying to have Apache use utf-8 (to display ö and ä specifically) I had set ForceType text/html; charset=utf-8 in httpd.conf which did display the filenames in utf-8 but also made the files display as text.

After this I needed to figure out how to use utf-8 as AddDefaultCharset UTF-8 didn't work. IndexOptions Charset=UTF-8 fixed that problem

3
  • Nice :-) Please don't forget to check back tomorrow to accept your answer. This will remove the question from Unanswered -queue and help others with similar problem identify this as resolved. Commented Feb 5, 2023 at 18:29
  • Oops! I edited your question for clarity, adding code brackets etc. Please check the edit and correct any mistakes. Commented Feb 5, 2023 at 18:45
  • all seems fine :)
    – uloste
    Commented Feb 5, 2023 at 18:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .