机子上以前就安有, Homestead 的, 下了程序后,
Homestead.yaml 里添加了
- map: flarum.io
to: /home/vagrant/Code/flarum
然后只能访问首页, 把虚拟机里的对应的nginx里改成这样, 访问 flarum.io/admin
报
403 Forbidden
You do not have permissions to access this page.
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /api {
try_files $uri $uri/ /api.php?$query_string;
}
location /admin {
try_files $uri $uri/ /admin.php?$query_string;
}
location /flarum {
deny all;
return 404;
}
求怎么解决?