Nowhere.dk has been moved to nginx (with php5-fpm) and most things seem to be working.
There is one problem though.
It seem that some of the older articles are indexed as /articles/-title-/index.php
(which is sort of wrong) and accessing that type of URI results in a blank page.
The problem seem to be that I’ve configured nginx to serve file in this order:
location / {
try_files $uri $uri/ @rewrites;
}
In theory it should then be a matter of defining the right rewrite
location @rewrites {
rewrite ^/articles/(.*)/index.php$ /articles/$1 permanent;
rewrite ^ /index.php last;
}
but – There’s also a location definition for all php “files” (locations ending in .php, not files mind you) and I believe that the .php locations are handed over to php5-fpm withouth nginx actually testing to see if it’s there.
Perhaps I can solve this – but it is a minor problem.