【发布时间】:2021-07-12 10:28:51
【问题描述】:
我刚刚使用brew 安装了nginx,其默认配置位于/usr/local/etc/nginx。默认conf文件中的服务器配置如下(只粘贴了一小部分)
server {
listen 8080;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
...
}
提供index.html 的位置是/usr/local/var/www/。现在看上面的配置,不明白nginx是怎么去/usr/local/var/www/找默认文件的?是否有其他配置指示 nginx 查看该文件夹?
【问题讨论】:
标签: nginx nginx-config