<div dir="ltr"><div>В конфиге прописано только прокси для пхп</div>
<div>&nbsp;</div>
<div>#MAIN LOCATION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root /var/www/html/;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (-f $request_filename.php) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href="http://dynamic.domain.com/">http://dynamic.domain.com</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Кусок лога действительно не тот</div>
<div>&nbsp;</div>
<div>вот&nbsp;полный ( с запросом на /data)</div>
<div>&nbsp;</div>
<div>повторюсь, что все работает. Проблема только при реквесте директории без слеша. </div>
<div>По идее (так апаче делал), он должен понять файл это или директория. Может модуль какой пропустил?</div>
<div>&nbsp;</div>
<div>./nginx -V<br>nginx version: nginx/0.6.34<br>built by gcc 3.4.6 20060404 (Red Hat 3.4.6-9)<br>configure arguments: --prefix=/usr/local/nginx --user=apache --group=apache --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --without-http_fastcgi_module --without-http_empty_gif_module --http-log-path=/var/log/nginx --with-http_stub_status_module --with-debug<br>
</div>
<div>&nbsp;</div>
<div>2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer del: 473: 474497423<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 generic phase: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 generic phase: 1<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location for &quot;/data&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: &quot;/&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: &quot;/&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: &quot;/&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: &quot;/nginx_status&quot;</div>
<div>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;/([0-9]+)/([0-1][0-9])/&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;/([0-9]+)/([2-3][0-9])/&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;/([0-9]+)/([4-5][0-9])/&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;/([0-9]+)/([6-7][0-9])/&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;/([0-9]+)/([8-9][0-9])/&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;^.+\.(jpg|jpeg|gif)$&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;^.+\.(html|js|css)$&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 find location: ~ &quot;\.xml$&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 using configuration &quot;/&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http cl:-1 max:0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 generic phase: 3<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 post rewrite phase: 4<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 generic phase: 5<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 generic phase: 6<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 access phase: 7<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 access phase: 8<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 post access phase: 9<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http init upstream, client timer: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 epoll add event: fd:473 op:3 ev:80000005<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http script var: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http script var: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http script var: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http script var: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http script copy: &quot;&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-silverlight, */*&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Accept-Language: en-us,he;q=0.5&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Accept-Encoding: gzip, deflate&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; FDM)&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Cookie: xxx&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header:<br>&quot;GET /data HTTP/1.0<br>X-Forwarded-For:&nbsp; xxx.xxx.xxx.xxx<br>
X-Forwarded-Host: <a href="http://www.domain.com/">www.domain.com</a><br>Host: <a href="http://dynamic.domain.com">dynamic.domain.com</a><br>X-Forwarded-Server: <a href="http://www.domain.com/">www.domain.com</a><br>Connection: close<br>
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-silverlight, */*<br>
Accept-Language: en-us,he;q=0.5<br>Accept-Encoding: gzip, deflate<br>User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; FDM)<br>
Cookie: xxx&quot;</div>
<div>2008/12/09 10:02:44 [debug] 22188#0: *914133 http cleanup add: 09B373F8<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 get rr peer, try: 1<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 socket 543<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 epoll add connection: fd:543 ev:80000005<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 connect to <a href="http://10.232.22.170:80">10.232.22.170:80</a>, fd:543 #914137<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream connect: -2<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer add: 543: 90000:474407435<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 post event B79CD6B8<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 delete posted event B79CD6B8<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream check client, write event:1, &quot;/data&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream recv(): -1 (11: Resource temporarily unavailable)<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 post event B79CE454<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 delete posted event B79CE454<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream send request handler<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream send request<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 chain writer buf fl:1 s:1038<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 chain writer in: 09B37414<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 writev: 1038<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 chain writer out: 00000000<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer del: 543: 474407435<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer add: 543: 90000:474407438<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 post event B7B6B454<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 post event B79CE454<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 delete posted event B79CE454<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream dummy handler<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 delete posted event B7B6B454<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream process header<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 malloc: 09C2FB20:4096<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 recv: fd:543 516 of 4096<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy status 301 &quot;301 Moved Permanently&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Date: Tue, 09 Dec 2008 15:02:08 GMT&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Server: Apache&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Location: <a href="http://dynamic.domain.com/data/">http://dynamic.domain.com/data/</a>&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Content-Length: 303&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Connection: close&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header: &quot;Content-Type: text/html; charset=iso-8859-1&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http proxy header done<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 HTTP/1.1 301 Moved Permanently<br>Server: nginx/0.6.34<br>Date: Tue, 09 Dec 2008 15:02:44 GMT<br>Content-Type: text/html; charset=iso-8859-1<br>
Connection: keep-alive<br>Keep-Alive: timeout=30<br>Location: <a href="http://dynamic.domain.com/data/">http://dynamic.domain.com/data/</a><br>Content-Length: 303</div>
<div><br>2008/12/09 10:02:44 [debug] 22188#0: *914133 write new buf t:1 f:0 09B3760C, pos 09B3760C, size: 248 file: 0, size: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http write filter: l:0 f:0 s:248<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream process upstream<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe read upstream: 1<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe preread: 303<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 readv: 1:3580<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe recv chain: 0<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe buf free s:0 t:1 f:0 09C2FB20, pos 09C2FBF5, size: 303 file: 0, size: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 input buf #0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe write downstream: 1<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe write downstream flush in<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http output filter &quot;/data?&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 copy filter: &quot;/data?&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 malloc: 09CE9158:4096<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http postpone filter &quot;/data?&quot; 09B377F4<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http postpone filter out &quot;/data?&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 write old buf t:1 f:0 09B3760C, pos 09B3760C, size: 248 file: 0, size: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 write new buf t:1 f:0 09C2FB20, pos 09C2FBF5, size: 303 file: 0, size: 0<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 http write filter: l:0 f:0 s:551<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 copy filter: 0 &quot;/data?&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 pipe write downstream done<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer: 543, old: 474407438, new: 474407439<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream exit: 00000000<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 finalize http upstream request: 0<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 finalize http proxy request<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 free rr peer 1 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 close http upstream connection: 543<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer del: 543: 474407438<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http upstream temp fd: -1<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http output filter &quot;/data?&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 copy filter: &quot;/data?&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http postpone filter &quot;/data?&quot; BFEED108<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http postpone filter out &quot;/data?&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 write old buf t:1 f:0 09B3760C, pos 09B3760C, size: 248 file: 0, size: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 write old buf t:1 f:0 09C2FB20, pos 09C2FBF5, size: 303 file: 0, size: 0<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 write new buf t:0 f:0 00000000, pos 00000000, size: 0 file: 0, size: 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http write filter: l:1 f:0 s:551<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http write filter limit 0<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 writev: 551<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http write filter 00000000<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 copy filter: 0 &quot;/data?&quot;<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http finalize request: 0, &quot;/data?&quot;<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 set http keepalive handler<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http close request<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http log handler<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 free: 09C2FB20<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 free: 09B36800, unused: 4<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 free: 09CE9158, unused: 3683<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 event timer add: 473: 30000:474347439<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 free: 09AC0710<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 free: 099B8E50<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 hc free: 00000000 0<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 hc busy: 00000000 0<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 tcp_nodelay<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 post event B7B6A6B8<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 delete posted event B7B6A6B8<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 http keepalive handler<br>
2008/12/09 10:02:44 [debug] 22188#0: *914133 malloc: 099B8E50:1024<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 recv: fd:473 -1 of 1024<br>2008/12/09 10:02:44 [debug] 22188#0: *914133 recv() not ready (11: Resource temporarily unavailable)</div>

<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;Спасибо!</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div></div>