Serving Craft from a sub-directory on Nginx I'm starting with a clean install, empty database.  

What would be the changes needed to this Nginx configuration to serve craft from /articles/ instead of "/"?

Any specific configurations that needs to be done to the Craft configs?

I've tried many combinations that all ended in 404.

Current layout:

/srv/www/app/craft &lt;- "craft files"

/srv/www/webroot &lt;- "public webroot"

/srv/www/webroot/articles/ &lt;- "craft index.php here (with path set correctly to craft)".

Thanks.
If you want to just adjust the folder for the webroot set the root to

/srv/www/webroot/articles/

And in the index.php file make sure the path to the craft folder is

'../../app/craft'

UPDATE:

If you instead want to leave the webroot as is and just have craft run from yourdomain.com/articles you would need to also update the index.php to make sure the craft path is set correct

and in the nginx file add this

location /articles/ {
  try_files $uri $uri/ @rewrites;  
}

location @rewrites {
   rewrite ^/articles/(.*)$ /articles/index.php?p=$1 last;
}


put that directly above this line, everything else can be the same

location ~ \.php$ {