Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Ubuntu 13.04 the original WWW was in /var/www/ then I installed NginX and it installed correctly but I can't find the actual folder accessible by http (I looked in /etc/nginx/). I searched for index.htm, index.html and index.php but there are hundreds of results.

Is there a command I can run to tell me what folder http is pointed to? I tried searching for this but I am not sure what keywords to use .

Places I looked in:

share|improve this question
Check the configuration files. – user186340 May 3 '15 at 8:27

On ubuntu if you installed with apt-get it is /usr/share/ngnix/www

share|improve this answer

If you run

dpkg -L nginx

you should see where it put any files.

share|improve this answer

Look into /etc/nginx/sites-available/default file. Find root line in the first server section. It defines default web root folder and you can change it, if you like. There can be more server sections defined, as well, with different root folders (that's how you create virtual hosts).

share|improve this answer

Your Answer


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.