216 questions

223 answers

12 comments

334 users

Welcome to OSSbible, where you can ask Open Source Products questions and receive answers from members of the community. OSSbible has very active & vibrant community members whose knowledge is unparalleled.

How to fix nginx root directive not works(inner folders) in your vhost file.

+1 vote
asked Dec 1, 2015 in Linux by prithvi (2,660 points)

1 Answer

0 votes
We need to change nginx configuration

Location ~ \.php$ {

fastcgi_pass unix:/var/run/php5-fpm.sock;

fastcgi_index index.php;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; -- added in default.conf

fastcgi_read_timeout 3600;

}

after that reload nginx
answered Dec 1, 2015 by rajashekar (1,610 points)

Related questions

...