• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

ico BUG

I use Litespeed+nginx... If I set below
location ~* .(jpg|jpeg|gif|png|swf|htm|html|rar|zip|7z|xml|ico){
root /home/wwwroot/xf4.org/public_html;
expires 30d;
Error like this.(ps.only Edit Resource Icon error)

If I remove |ico
location ~* .(jpg|jpeg|gif|png|swf|htm|html|rar|zip|7z|xml){
root /home/wwwroot/xf4.org/public_html;
expires 30d;
Everything is ok...


Well-known member
Quick search gave me this:

However, since you are using a RegEx to match routes, the period (.) matches any character, so /ico in the url to edit the icon matches as well as .ico, thus giving you your 404 error. You should use the following:
location ~* \.(jpg|jpeg|gif|png|swf|htm|html|rar|zip|7z|xml)

It should work.