NGinx Default public www location?

前端 未结 30 1076
野性不改
野性不改 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条回答
  •  时光取名叫无心
    2020-11-28 18:09

    On Mac OS X installing nginx with brew makes the default directory:

    /usr/local/var/www
    

    So:

    root html
    

    means

    root /usr/local/var/www/html
    

    There is no html directory so it would have to be created manually.

提交回复
热议问题