I want to put files on my Arch Linux file server so that others can download them via HTTP. Where under /var should they be placed?

  • Did you have any particular idea about how you wanted others to download them? – Ignacio Vazquez-Abrams Oct 30 '11 at 5:25
  • Well I'm currently using DynDns.org – Matt Oct 30 '11 at 5:26
  • That does not come anywhere near to answering my question. – Ignacio Vazquez-Abrams Oct 30 '11 at 5:27
  • By using Dyndns.org I a have a URL (My Server name).dyndns.org. This URL is how others would download my files. – Matt Oct 30 '11 at 5:30
  • So then did you mean your answer to be "Via a web server running on my machine"? – Ignacio Vazquez-Abrams Oct 30 '11 at 5:30

Mostly it's /var/www but it depends on your webserver and the configuration.

  1. Check what web server software you have installed. The default on most distros will be apache, but again like most distributions ArchLinux also supplies lighttpd and nginx so it depends on which one you picked.

  2. Check the config files of the installed server software. This will likely be in /etc/<softwarename>/, so /etc/apache/ or /etc/nginx or /etc/lighttpd depending on 1).

  3. Somewhere in said configuration there will be a header stating the default document root for the default host. As @Rainer pointed out, /var/www is the most commonly used standard location, but it never hurts to make sure. Homework for this step: Lighttpd docs, NginX docs, Apache docs depending on which software you installed

  4. ...

  5. Profit!

  • I don't mind being downvoted, but if whoever did so would please leave some constructive criticism as to why my answer was inaccurate, poorly worded or factually incorrect I'd appreciate it. – Shadur Oct 30 '11 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.