Hello,<div><br></div><div>Everyone knows there are many nginx tutorials out there and I would like to know what's the "modern way" when writing a php location block, I'm doing (nginx 1.1.:</div><div><br></div>
<div>location ~ \.php$ {</div><div><div> try_files $uri =404;</div><div><br></div><div> include fastcgi_params;</div><div> fastcgi_pass unix:/var/run/php5-fpm/www-data.sock;</div><div>}</div></div><div><br></div><div>
And it works pretty well. I quick tested phpinfo, drupal, joomla, wordpress and they all run correctly with SEF urls etc.</div>
<div>However, I often see the following directives being used, how important/useful are they?</div><div><br></div><div>fastcgi_split_path_info ^(.+\.php)(/.+)$;</div><div><div>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</div>
<div>fastcgi_param SCRIPT_NAME $fastcgi_script_name; </div></div><div><br></div><div>Regards,</div><div>Gregory</div>