3 ms·
I use nginx to serve files, to provide some hotlinking control for my PDFs and to do split tests on my free trial executables. (I should write about that some
by patio11 18y ago
I use nginx to serve files, to provide some hotlinking control for my PDFs and to do split tests on my free trial executables. (I should write about that some time -- fun, fun stuff, but rather harder than web page split testing.)
To save anyone else doing Rails/nginx some pain, I copy/pasted the important bits to a pastie. Feel free to use them. In particular note the Content-Disposition header: if you forget it, you will regret it, particularly if you're a fan of urls /that/do/not/have/extensions.
http://pastie.org/396525 http://pastie.org/396525