Solved: 6 Years, 4 Months, 2 Weeks ago Avatar display - Nginx
#1
Solved: 6 Years, 4 Months, 2 Weeks ago
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.
Reply
#2
Solved: 6 Years, 4 Months, 2 Weeks ago
see file permissions guidance and this guidance (external site)
Reply
#3
Solved: 6 Years, 4 Months, 2 Weeks ago
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)