<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=RU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt'>Добрый день, Антон<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'>Есть конфиг<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'> </span><span
lang=EN-US style='font-size:11.0pt'>server {<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> listen
80;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> server_name
domain.ex ~^([^.]+)\.domain.ex$;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> set
$dom $1; <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> rewrite
^ http://some.domain.com/domain/$dom;<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><span
style='font-size:11.0pt'>}<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'>В апаче<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:35.4pt'><span style='font-size:11.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US><VirtualHost
*:8086><br>
ServerName domain.ex:8086<br>
ServerAlias *.domain.ex<br>
...<br>
</span></VirtualHost><span style='font-size:11.0pt'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'>Работает …<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>--<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt'>С уважением, Вячеслав<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> owner-nginx-ru@sysoev.ru
[mailto:owner-nginx-ru@sysoev.ru] <b>On Behalf Of </b></span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Антон</span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Кирюшкин</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br>
<b>Sent:</b> Tuesday, October 13, 2009 3:53 PM<br>
<b>To:</b> nginx-ru@sysoev.ru<br>
<b>Subject:</b> Re: </span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>автоматические</span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>субдомены</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
nginx-apache<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Вячеслав, а насколько
работоспособна предложенная вами конфигурация nginx ? <o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>-- <br>
Best regards,<br>
Anton Kiryushkin,<o:p></o:p></p>
</div>
</body>
</html>