I am new to nginx and I have been hacking up my nginx.conf file to get a site working but still having issues with a few different things. Here is the scope and some problems. #2 below is most important. My nginx.conf file is located at the bottom via pastebin link.
1) my site has vanity urls... domain.com/username (this works)
2) my site also has directories in root. domain.com/red/ but the cannot be viewed because the following comes up... (This is a 404 error, page cannot be found.) I would like domain.com/red/ to just show up
3) I also have a wp blog and it is located here: domain.com/blog/ redirects to www.domain.com/blog/ (It shows up and works but I prefer to not have 'www.' Also can't use seo friendly permalink urls)
Here is my nginx.conf file