Home  >  Q&A  >  body text

nginx - uploadify 403 appears when uploading avatar

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.

某草草某草草2713 days ago580

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-16 17:21:15

    Let’s take a look at the packet capture and analysis. In this case, the host and URL submitted are usually wrong

    reply
    0
  • Cancelreply