I have installed Apache Web Server in Arch Linux. The Apache is working fine and when I typing localhost in my browser see this:

Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/1.0.1e DAV/2 PHP/5.5.7 Server at localhost Port 80

I can't find the /var/www directory and creating it can't solve the 404 error. Is there any equivalent for /var/www in Arch Linux?


The equivalent is in /srv/http. You can find some discussion about its use in Arch in this mailing list post and this bug report (albeit only tangentially, those links discuss using it as a location for installed packages).

  • 2
    Or the generic method to find it out: search for DocumentRoot in the configuration file(s) (usually httpd.conf or conf/* in /etc/httpd/ or /etc/apache2/). – manatwork Dec 24 '13 at 14:43

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.