The $host = make.wordpress.org conditional also needs some lines from the location / block, prior to the rewrite for index.php pulled from @404-extend in http://make.wordpress.org/systems/2012/07/17/problem-with-nginx-rewrites-i-think-conflict-between/#comment-247.
Specifically:
# uploaded files
rewrite ^/([_0-9a-zA-Z-]+/)?files/(.+) /wp-includes/ms-files.php?file=$2 last;
rewrite ^/core/handbook/files/(.+) /wp-includes/ms-files.php?file=$1 last;
# add a trailing slash to /wp-admin
rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /$1wp-admin/ permanent;
rewrite ^/core/handbook/wp-admin$ /core/handbook/wp-admin/ permanent;
I suggest the various /core/handbook/ rules be pulled out into their own location block once make.wordpress.org moves to its own server block.
stankea 4:12 pm on July 30, 2012 Permalink | Log in to Reply
Moved out make.wordpress.org to a seperate file and added in the rules.
Ipstenu (Mika Epstein) 1:34 pm on July 31, 2012 Permalink | Log in to Reply
I think you broke something
make/support redirects to the forums, and apparently no one can log in to the forums. Minor ish.
Barry 9:19 pm on July 31, 2012 Permalink | Log in to Reply
Can’t replicate either of these things. Are you still having trouble?
Andrew Nacin 9:37 pm on July 31, 2012 Permalink | Log in to Reply
Not sure about the logging in part, but the redirect was fixed by @stankea. This change included a fix for this.
Ipstenu (Mika Epstein) 11:03 pm on July 31, 2012 Permalink | Log in to Reply
By the time my comment was approved, this was fixed.