MyBB Community Forums

Full Version: Avatar display - Nginx
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am having an issue with the avatar display.

After i upload and set the avatar, it seems that mybb cannot access the image.

If i try to view the image directly by going to the url e.g http://www.example.com/uploads/myavatar.jpg
I get an error message (403 forbidden) from nginx.

Ive tried with chmod 777, chmod 755 on the uploads directory. But i can't seem to access the directory.
Alright, while checking nginx server block configuration files i found this:

location ~ /(inc|uploads/avatars) {
Deny all;
}

I changed it to allow all, i wonder if that is considered safe. At least i can access the avatars