NGinx Default public www location?

user1405298 picture user1405298 · May 20, 2012 · Viewed 637.1k times · Source

I have worked with Apache before, so I am aware that the default public web root is typically /var/www/.

I recently started working with nginx, but I can't seem to find the default public web root.

Where can I find the default public web root for nginx?

Answer

Lufix picture Lufix · Jan 7, 2013

If installing on Ubuntu using apt-get, try /usr/share/nginx/www.

EDIT:

On more recent versions the path has changed to: /usr/share/nginx/html

2019 EDIT:

Might try in /var/www/html/index.nginx-debian.html too.