<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts6, span.rvts6
{
 color: #0000ff;
 text-decoration: underline;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Доброе время суток!</p>
<p><br></p>
<p>Есть nginx + PHP FastCGI.&nbsp;</p>
<p>Есть вордпресс. Существуют ссылки типа&nbsp;<a class=rvts6 href="http://server/dir2">http://server/dir2</a></p>
<p>Вот если обращаться по урлу без последнего слэша - работает верно. Если без слэша - 404 error.</p>
<p>Как это решить в proxy_pass - понятно. А как в fastcgi_pass - нет. Дело осложняется еще тем, что вордпресс так устроен.&nbsp;</p>
<p>Отображение несуществующих файлов и каталогов переписывается на /index.php. Условия типа if !(!-d $request_filename) не работают.&nbsp;</p>
<p>Error_page 404 /index.php; работает но до уровня как я описал выше. Если обратиться к каталогу без слэша в конце - 404.</p>
<p>Как добиться корректной работы?</p>
<p><br></p>
<p>---</p>
<p>С уважением,</p>
<p>А. Лопатин</p>

</body></html>