I did follow your suggestions. The files in the directory and its sub directories will be served. I did go along well with the permission stuff. But the problem still persist. If I try to open the pdf through google chrome, if the download stuck, it will stuck forever even if i reload. It would stuck at the same byte size. The pdf file wont be displayed. I think it's something wrong with uwsgi or nginx config but cant figure out why. I might be some something to do with the my system resources. I didnt get this problem if I use paster.
location /resources/~* { #internal; root /root/to/app; expires max; } On Sun, Oct 9, 2011 at 1:10 AM, Michael Merickel <mmeri...@gmail.com> wrote: > You can still have nginx serve your static files after pyramid has checked > the permissions by having pyramid return a response containing the > x-accel-redirect header. For more info about it look into nginx's version of > X-Sendfile. > > http://wiki.nginx.org/X-accel > http://wiki.nginx.org/XSendfile > > -- > > Michael > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > > To post to this group, send email to pylons-discuss@googlegroups.com. > To unsubscribe from this group, send email to > pylons-discuss+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.