atom feed3 messages in ru.sysoev.nginxIf file not found redirect to proxy...
FromSent OnAttachments
just startingFeb 18, 2008 12:48 am 
Denis F. LatypoffFeb 18, 2008 1:00 am 
just startingFeb 18, 2008 2:19 am 
Subject:If file not found redirect to proxy...
From:just starting (just@public.gmane.org)
Date:Feb 18, 2008 12:48:06 am
List:ru.sysoev.nginx

hi,

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

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) block.

Is there any other way to achieve that.

Thanks, Rakesh.