Problem with fpm php (wrong script location ?!)

locojohn nginx-forum at nginx.us
Mon Feb 27 20:26:04 UTC 2012


> location / {
> root /websites/some.domain/http;
> index index.php index.html index.htm;
> }

Try to move this main root out of location / {} block to the server {}
block:

server {

  server_name ...;
  root ...;

}


Also, root should ALWAYS point to an absolute path.

http://nginx.org/en/docs/http/ngx_http_core_module.html#root

Andrejs

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,223072,223077#msg-223077



More information about the nginx mailing list