ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

if (!-f $request_filename) VS 404



Hello nginx-ru,

  Voznik vopros principa obrabotki dvuh dejstvij.
  operatora if (-f) i 404 oshibki.

  Situacija takova, nginx vidajot statichnij content, esli contenta
  net, to on peredajot zapros na backend.

  Otdelnij proces v sisteme, udaljaet statiku esli ona expired.

  Interesuet tochnaja otrabotka oboih procesov.

>  Itak (-f)
       1. Zapros na fajlovuju sistemu esli file , i vozvrat otveta
       (Y/N)
       2.1. - Esli file est''
              - to otkritie fajla,
              - chtenie
              - vidacha  klientu
       2.2. - Esli fajla net,
            - otrabativaet rewrite,
            - peredacha zaprosa backend.

   Chto budet , esli posle 1go shaga, v moment perehoda na shag 2.1.
   iskomij file udaljaetsa iz sistemi. User poluchit 404 oshibku?

> Eror 404.
       Kak proishodit obraschenie k iskomumu fajlu v dannom sluchae ?
           1. Takhe kak s -f, proverka, otkritie, vidacha
           2. Srazu otkritie na chtenie i vidacha 404 esli oshibka

Esli dejstvuet 2 variant, to poluchaetsa chto proverka
suschestvovanija fajla chere 404 oshibku rabotaet bistree.

Spasibo.


-- 
Best regards,
Aleksej             
ICQ: 113882950
GSM:371.936.86.24





 




Copyright © Lexa Software, 1996-2009.