Thanks, that did the job.<br><br>
<div class="gmail_quote">On FeThb 18, 2008 2:31 PM, Denis F. Latypoff <<a href="mailto:denis@gostats.ru">denis@gostats.ru</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello just,<br>
<div>
<div></div>
<div class="Wj3C7c"><br>Monday, February 18, 2008, 2:48:29 PM, you wrote:<br><br>> hi,<br><br>> I am using nginx to serve static files and proxying to jetty for dynamic<br>> pages.<br><br>> What I generally do is build the .war file, put it on jetty and also put the<br>
> static files on nginx for nginx to serve.<br><br>> Now, can I do this, if some static file is not present in nginx, it will ask<br>> the jetty server for this file?<br><br>> I tried to proxy to jetty server if the requested file is not present, but<br>
> it is not allowing me to put the proxy_pass line inside the if(filenotfound)<br>> block.<br><br>> Is there any other way to achieve that.<br><br></div></div>location / {<br> error_page 404 = @backend;<br>}<br>
<br>location @backend {<br> proxy_pass ...;<br>}<br><br>> Thanks,<br>> Rakesh.<br><font color="#888888"><br><br><br>--<br>Best regards,<br> Denis mailto:<a href="mailto:denis@gostats.ru">denis@gostats.ru</a><br>
<br><br></font></blockquote></div><br>