Thanks, that did the job.<br><br>
<div class="gmail_quote">On FeThb 18, 2008 2:31 PM, Denis F. Latypoff &lt;<a href="mailto:denis@gostats.ru">denis@gostats.ru</a>&gt; 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>&gt; hi,<br><br>&gt; I am using nginx to serve static files and proxying to jetty for dynamic<br>&gt; pages.<br><br>&gt; What I generally do is build the .war file, put it on jetty and also put the<br>
&gt; static files on nginx for nginx to serve.<br><br>&gt; Now, can I do this, if some static file is not present in nginx, it will ask<br>&gt; the jetty server for this file?<br><br>&gt; I tried to proxy to jetty server if the requested file is not present, but<br>
&gt; it is not allowing me to put the proxy_pass line inside the if(filenotfound)<br>&gt; block.<br><br>&gt; Is there any other way to achieve that.<br><br></div></div>location / {<br>&nbsp; &nbsp;error_page 404 = @backend;<br>}<br>
<br>location @backend {<br>&nbsp; &nbsp;proxy_pass ...;<br>}<br><br>&gt; Thanks,<br>&gt; Rakesh.<br><font color="#888888"><br><br><br>--<br>Best regards,<br>&nbsp;Denis &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mailto:<a href="mailto:denis@gostats.ru">denis@gostats.ru</a><br>
<br><br></font></blockquote></div><br>