NGinx Default public www location?

前端 未结 30 1151
野性不改
野性不改 2020-11-28 17:51

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 ca

30条回答
  •  旧时难觅i
    2020-11-28 17:58

    Look into nginx config file to be sure. This command greps for whatever is configured on your Machine:

    cat /etc/nginx/sites-enabled/default |grep "root"
    

    on my machine it was :root /usr/share/nginx/www;

提交回复
热议问题