Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
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

2 Answers 2

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

share|improve this answer
  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!

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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