If file not found redirect to proxy...

just starting just.starting at gmail.com
Mon Feb 18 11:48:29 MSK 2008


I am using nginx to serve static files and proxying to jetty for dynamic

What I generally do is build the .war file, put it on jetty and also put the
static files on nginx for nginx to serve.

Now, can I do this, if some static file is not present in nginx, it will ask
the jetty server for this file?

I tried to proxy to jetty server if the requested file is not present, but
it is not allowing me to put the proxy_pass line inside the if(filenotfound)

Is there any other way to achieve that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080218/fe09fc31/attachment.html>

More information about the nginx mailing list