justjavac 错了,是我用了这
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;
}
就启动不了站点了
如果不用的话,以上的路径访问不了,其它还行
2015/11/16 09:39:11 [error] 12608#10724: *1 FastCGI sent in stderr: "PHP Fatal error: Maximum execution time of 30 seconds exceeded in E:\MyProjects\Flarum\vendor\illuminate\database\Connection.php on line 390" while reading response header from upstream, client: 127.0.0.1, server: flarum, request: "POST / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8018", referrer: "http://localhost:8018/"
2015/11/16 09:41:51 [emerg] 2688#14176: duplicate location "/" in D:/php/nginx-1.9.3/conf/nginx.conf:295
这是nginx的错误提示
用的是win平台的nginx
不知道哪里出了问题