NGinx Default public www location?

前端 未结 30 1094
野性不改
野性不改 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 install nginx with brew:

    /usr/local/etc/nginx/nginx.conf

    location / { 
        root   html;  # **means /usr/local/Cellar/nginx/1.8.0/html and it soft linked to /usr/local/var/www**
        index  index.html;
    }  
    

提交回复
热议问题