<div dir="ltr">Чтобы выдать 200,<br>error_page 404 =/image.gif;<br>Чтобы 304 - что-то типа<br>error_page 404 =@fallback;<br>location @fallback { rewrite ^ /image.gif; }<br><div class="gmail_quote">22 октября 2008 г. 13:22 пользователь Rauan Maemirov <span dir="ltr">&lt;<a href="mailto:rauan@maemirov.com">rauan@maemirov.com</a>&gt;</span> написал:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Есть location<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;location ^~ /images/ {<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;access_log off;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;expires 30d;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alias /var/images/;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_page 404 /image.gif;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;location ~ &quot;\.(ico|jpg|png|gif)$&quot; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;access_log off;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;error_log off;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;expires 30d;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;root /var/www/images;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
Как сделать так, чтобы при попадании во второй location (404 от<br>
первого) выдавался нормальный код, например 304?<br>
</blockquote></div><br><br clear="all"><br>-- <br>С уважением, Борис Долгов.<br>icq 77556665<br>e-mail <a href="mailto:boris@dolgov.name">boris@dolgov.name</a><br>
</div>