Serving Static File with Permissions using Nginx, Uwsgi

2011-10-08 Thread Boyi
HI, I use pyramid, uwsgi with nginx. Before this, I serve my static pdf files using nginx. The files can be download fast. But now, because I set the permission for the files to a directory called '/resources' for a certain group of users by using add_static_view, my understanding is the file will

Re: Serving Static File with Permissions using Nginx, Uwsgi

2011-10-08 Thread Graham Higgins
Dunno if it's relevant but you have a typo in the posted config at least: location / { nclude uwsgi_params; -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: Serving Static File with Permissions using Nginx, Uwsgi

2011-10-08 Thread Sharil Shafie
Not relevant unfortunately. That's pasting error. On 08-Oct-2011 10:19 PM, Graham Higgins gjhigg...@gmail.com wrote: Dunno if it's relevant but you have a typo in the posted config at least: location / { nclude uwsgi_params; -- You received this message because you are

Re: Serving Static File with Permissions using Nginx, Uwsgi

2011-10-08 Thread Michael Merickel
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 --

appengine with sql?

2011-10-08 Thread Iain Duncan
Just saw the announcement that app engine now has an sql backend. Wondering if anyone has got it working with Pyramid and SQLAlchemy yet? I've not yet used AppEngine, but will check it out if I can get verification that this is now possible. thanks! Iain -- You received this message because you

Re: Serving Static File with Permissions using Nginx, Uwsgi

2011-10-08 Thread Sharil Shafie
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

Re: Serving Static File with Permissions using Nginx, Uwsgi

2011-10-08 Thread Sharil Shafie
ops. The #internal was actually be uncommented. I commented it as temporary measure. -- 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