<div dir="ltr"><h2 id=":184" class="" tabindex="-1"><span style="font-family:arial,sans-serif;font-style:normal;font-variant:normal;line-height:normal;font-size:13px;font-weight:normal">Есть два сервачка</span><div><font face="arial, sans-serif"><span style="font-weight:normal">На одном только nginx, на другом php-fpm</span></font></div>
<div><font face="arial, sans-serif"><span style="font-weight:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="font-weight:normal">написал такой конфиг<br></span></font><div><font face="arial, sans-serif"><span style="font-weight:normal">server {</span></font></div>
<div><font face="arial, sans-serif"><span style="font-weight:normal"> listen ...</span></font></div><div><font face="arial, sans-serif"><span style="font-weight:normal"> server_name ...</span></font></div><div>
<span style="font-weight:normal;font-family:arial,sans-serif;font-size:small"><br></span></div><div><span style="font-weight:normal;font-family:arial,sans-serif;font-size:small"> set $userRoot ...</span></div><div>
<br></div><div><font face="arial, sans-serif"><span style="font-weight:normal"> location ~\.php$ {</span></font></div><div><font face="arial, sans-serif"><span style="font-weight:normal"> root $userRoot;</span></font></div>
<div><font face="arial, sans-serif"><span style="font-weight:normal"><br></span></font></div><div><font face="arial, sans-serif"><span style="font-weight:normal"> fastcgi_pass ...</span></font></div><div>
<font face="arial, sans-serif"><span style="font-weight:normal"> fastcgi_index index.php;</span></font></div><div><font face="arial, sans-serif"><span style="font-weight:normal"> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</span></font></div>
<div><font face="arial, sans-serif"><span style="font-weight:normal"> include fastcgi_params;</span></font></div><div><font face="arial, sans-serif"><span style="font-weight:normal"> }</span></font></div>
<div><font face="arial, sans-serif"><span style="font-weight:normal">}</span></font></div><div style="font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal">
<br></div></div><div style="font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal">по идее <span style="font-size:small">nginx должен проксировать запросы на другой сервер, а он почему то ищет файлы локально.<br>
<br>Подскажите где ошибка</span></div></h2><span id=":187" class="" style="font-family:arial,sans-serif;font-size:18px"><div class="" id=":161" style="padding-top:0px;padding-right:7px;padding-left:10px;margin-right:13px;display:inline-block">
</div></span><div><span class="" style="font-family:arial,sans-serif;font-size:18px"><br></span></div></div>