November 18, 2011
/etc/nginx/conf.d/site.conf : server { server_name example.com www.example.com; root home/example/flask/static; location ~ ^/(img|js|css)/ { # |pi||ext|theme root /home/example/flask/static; add_header Cache-Control public; #expires 30d; #access_log [...]
November 14, 2011
In order to get access to uwsgi (useful for deploying python flask projects, for instance), one needs a version of nginx > 0.8 or so. But Fedora 12 doesn’t have such a modern version : Here’s how to build it from a src.rpm from a more recent Fedora release. # First, make sure we have [...]
October 17, 2011
In order to get access to uwsgi (useful for deploying python flask projects, for instance), one needs a version of nginx > 0.8 or so. But Fedora 12 doesn’t have such a modern version : Here’s how to compile it from source : Actually, a less hacky approach is to simply back-port (trivially) a src.rpm [...]