Re: Avatars Nginx 0.7 + WPMU 2.9.2 + BP 1.2 Rewrite Issue?
Whilst the user avatar uploads worked I discovered the Group Avatars didn’t and I was getting 404’s.
However I managed to get around this by chaninging the WPMU Rewrites in Nginx to the code below.
Similar issues with BP Album+ not showing images. I got it working by hacking the code before but since I’m on a run with Nginx at the mo I’ll have a look at the rewrite for that and BP Calendar.
#
WPMU rewrites
#
location ~* ^.+.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root /var/www/dinkypages.co.nz/public;
rewrite ^/.*(/wp-.*/.*.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ /wp-content/blogs.php?file=$1 last;
rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1;
if (!-e $request_filename) {
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*\.php)$ $1 last;
rewrite ^(.+)$ /index.php?q=$1 last;
}
expires 30d;
break;
}
#
WPMU rewrites
#