server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /var/www/fang;
index index.html index.htm;
}
location /admin {
root /var/www/admin;
index index.html index.htm;
}
}
上面那一条是有效的 但是下面那条无效 这是为什么?
建议列一下说无效的依据, 以及你本身想达到的效果(示例访问地址, 对应应该访问到的文件)
我觉得你想要的是: