I use nginx to proxy static resources, so uploadify’s js swf file is also proxy to nginx. At this time, when I uploaded the avatar, I found that 403 appeared. But if uploadify is not proxied through nginx, there will be no problem. How can I solve it?
My nginx static resource proxy is configured like this: relatively simple
location ~ /assets {
root /usr/local;
}
assets is my static resource directory, which is under /usr/local, and uploadify is under assets. My dynamic program is in tomcat.
Let’s take a look at the packet capture and analysis. In this case, the host and URL submitted are usually wrong