location + expires

Alexey V. Karagodov kav at karagodov.name
Sun Oct 19 14:29:18 MSD 2008


On 19.10.2008, at 13:48, kisulja2000 wrote:

> Есть настройка
>
> server {
>       listen   80;
>       server_name i1.site.ru i2.site.ru;
>       expires 7d;
>
>       access_log  off;
>
>       location / {
>               root   /var/www/images;
>               index  index.html index.htm;
>       }
> ...
> }
>
> хочу сделать
>
> location /path1/path2 {
>   expires 1h;
> }
>
> картинки перестают отдаваться. лог не смотрел. может быть внитри  
> второго Location нужно обязательно root прописать?
а лог стоило бы посмотреть
root указывать обязательно
>
>
> С уважением,
> Serguei V. Melekhov
>






More information about the nginx-ru mailing list