<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div></div><div><div><html>24 марта 2008, в 16:13, Alexander Simonov написал(а):</html><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Добрый день!<div><br></div><div>Или я туплю и ничего не понимаю или оно не работает.</div><div><br></div><div>Дано:</div><div><br></div><div>nginx/0.6.29 в сборке gentoo.</div><div><br></div><div><div> server { </div><div> listen 0.0.0.0:80; </div><div> optimize_server_names off; </div><div> server_name www3.favoritbet.com; </div><div> charset utf-8; </div><div> </div><div> access_log /var/log/nginx/www3.access_log main; </div><div> error_log /var/log/nginx/www3.error_log debug; </div><div> </div><div> root /var/www/www3.favoritbet.com/htdocs; </div><div> include /etc/nginx/proxy_params; </div><div> proxy_set_header Host 'favoritbet.com'; </div><div> </div><div> location /img/ { </div><div> error_page 404 = @fetch; </div><div> } </div><div> </div><div> location /news_img/ { </div><div> error_page 404 = @fetch; </div><div> } </div><div> </div><div> location @fetch { </div><div> internal; </div><div> include /etc/nginx/proxy_params; </div><div> proxy_set_header Host 'favoritbet.com'; </div><div> proxy_store on; </div><div> proxy_store_access user:rw group:rw all:r; </div><div> proxy_temp_path /var/www/www3.favoritbet.com/tmp/; </div><div> proxy_pass <a href="http://favoritbet.com">http://favoritbet.com</a>; </div><div> root /var/www/www3.favoritbet.com/htdocs/; </div><div> } </div><div> </div><div> location / { </div><div> include /etc/nginx/proxy_params; </div><div> proxy_set_header Host 'favoritbet.com'; </div><div> proxy_pass <a href="http://favoritbet.com/">http://favoritbet.com/</a>; </div><div> } </div><div> }</div><div><br></div><div><br></div><div><br></div><div>proxy_params:</div><div><br></div><div><div>proxy_read_timeout 15m; </div><div>proxy_send_timeout 15m; </div><div>proxy_set_header X-Real-IP $remote_addr; </div><div>proxy_buffering on;</div><div><br></div><div><br></div><div>Делаю запрос на <a href="http://www3.favoritbet.com/news_img/1206362118.jpeg">http://www3.favoritbet.com/news_img/1206362118.jpeg</a></div><div>Мне www3 его спокойно отдает, но!</div><div>картинка не кешируеться в /var/www/www3.favoritbet.com/htdocs/ и в /var/www/www3.favoritbet.com/tmp/ я не вижу tmp файлов.</div><div>Они все находяться в /var/tmp/nginx/proxy так как при компиляции была указана опция где находиться proxy_temp_path.</div><div><br></div><div>Права на указаные в конфиге директории:</div><div><br></div><div><div>seth www3.favoritbet.com # ls -l</div><div>total 0</div><div>drwxrwxrwx 2 nginx nginx 48 Mar 24 15:57 htdocs</div><div>drwxrwxrwx 2 nginx nginx 48 Mar 24 15:09 tmp</div></div></div></div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">--</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div>Александр Симонов</div><div>Ведущий программист отдела информационных технологий и защиты информации </div><div>ТОВ "Днепр-Виктория"</div><div>email: <a href="mailto:a.simonov@favoritbet.com">a.simonov@favoritbet.com</a></div><div>tel: +380(67)3275337</div><div>icq: 310029609</div></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">--</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div>Александр Симонов</div><div>Ведущий программист отдела информационных технологий и защиты информации </div><div>ТОВ "Днепр-Виктория"</div><div>email: <a href="mailto:a.simonov@favoritbet.com">a.simonov@favoritbet.com</a></div><div>tel: +380(67)3275337</div><div>icq: 310029609</div></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></div></body></html>