static files and 404

Cliff Wells cliff at develix.com
Thu Mar 19 23:22:56 MSK 2009


On Thu, 2009-03-19 at 13:21 -0700, Cliff Wells wrote:


Oops, should be

- location ~ /images/subassets/*.gif { 
+ location ~ /images/subassets/*.\.gif$ {

>   root /path/to/root; 
> }
> 
> location / {
>   root /path/to/root;
>   error_page 404 = @rails;
> }
> 
> location @rails {
>   proxy_pass http://domain.com;
> }
> 
> If you don't want *anything* from the subassets folder (not just gifs)
> to be passed to Rails, then just use
> 
> location /images/subassets {
>   root /path/to/root;
> }
> 
> Cliff
> 






More information about the nginx mailing list