<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
<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;
}
span.rvts6
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
 color: #ffffff;
 background-color: #0000ff;
}
span.rvts7
{
 font-size: 11pt;
 font-family: 'tahoma';
}
span.rvts8
{
 font-size: 8pt;
 font-family: 'arial';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts9, span.rvts9
{
 font-size: 8pt;
 font-family: 'arial';
 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>Здравствуйте, xorme.</p>
<p><br></p>
<p>Полные виртуалхосты Апача и нжыникса соответсвенно, которые у меня работают.</p>
<p><br></p>
<div><table border=0 cellpadding=1 cellspacing=2>
<tr valign=top>
<td width=12 style="background-color: #0000ff;">
<p><span class=rvts6>&gt;</span></p>
</td>
<td width=739 style="background-color: #ffffff;">
<p><span class=rvts7>&gt;&gt;&gt;В примере только то что нужно Вам. Помимо этого есть еще несколько обязательных опций, но их опущу.</span></p>
<p><br></p>
<p><span class=rvts7>как же я его настрою тпштч без "несколько обязательных опций"???&nbsp;</span></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><br></p>
<p>&lt;VirtualHost 127.0.0.2:80&gt;</p>
<p>&nbsp; &nbsp; ServerAdmin webmaster@domain.com</p>
<p>&nbsp; &nbsp; DocumentRoot /1/www/domain.com</p>
<p>&nbsp; &nbsp; ServerName www.domain.com</p>
<p>&nbsp; &nbsp; DirectoryIndex index.php</p>
<p>&nbsp; &nbsp; RealIP on on</p>
<p>&nbsp; &nbsp; ErrorLog /var/log/apache/www.domain.com-error_log</p>
<p>&nbsp; &nbsp; CustomLog /var/log/apache/www.domain.com-access.log common</p>
<p>&lt;/VirtualHost&gt;</p>
<p><br></p>
<p><br></p>
<p>server {</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; listen 62.149.0.0:80;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; server_name www.domain.com;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; access_log /var/log/nginx/www.domain.com-access.log &nbsp;combined;</p>
<p># &nbsp; &nbsp; &nbsp; limit_rate 8k;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; location / {</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root /1/www/www.domain.com;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; index index.php;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp;location ~ \.php$ {</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass &nbsp; http://127.0.0.2:80;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_redirect &nbsp; &nbsp; &nbsp;off;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp; &nbsp;Host &nbsp; &nbsp;$host;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp; &nbsp;X-Real-IP &nbsp; &nbsp; &nbsp; &nbsp;$remote_addr;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_set_header &nbsp; &nbsp;X-Forwarded-For &nbsp;$proxy_add_x_forwarded_for;</p>
<p><br></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; location ~ /\.ht {</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deny &nbsp;all;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; }</p>
<p>&nbsp; &nbsp; &nbsp; }</p>
<p><br></p>
<p>}</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts8>--&nbsp;</span></p>
<p><span class=rvts8>С уважением,</span></p>
<p><span class=rvts8>&nbsp;Алексей Бобок &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><a class=rvts9 href="mailto:alexey.bobok@gmail.com">mailto:alexey.bobok@gmail.com</a></p>

</body></html>