,  ,  .   -      .<br> ,      :)<br>,   :<br><br> 3proxy:<br><br>nscache 65536<br>timeouts 1 5 30 60 180 1800 15 60<br>
users ***:CL:***<br>daemon<br>auth strong<br>allow ***<br>external 0.0.0.0<br>internal 95.169.186.124<br>deny * * 127.0.0.1,192.168.1.1<br>allow * * * 80-88,8080-8088 HTTP<br>allow * * * 443,8443 HTTPS<br>proxy -n -a<br><br>
<br> ,    <br><br>server {<br> listen <a href="http://95.169.187.124:80">95.169.187.124:80</a>;<br><br> server_name <a href="http://streamzone.ru">streamzone.ru</a> <a href="http://www.streamzone.ru">www.streamzone.ru</a> <a href="http://streamzone.org">streamzone.org</a> <a href="http://www.streamzone.org">www.streamzone.org</a>;<br>
<br> access_log /var/www/vhosts/<a href="http://streamzone.org/statistics/logs/access_log">streamzone.org/statistics/logs/access_log</a> main;<br> error_log /var/www/vhosts/<a href="http://streamzone.org/statistics/logs/error_log">streamzone.org/statistics/logs/error_log</a>;<br>
# access_log off;<br><br> root /var/www/vhosts/<a href="http://streamzone.org/$name">streamzone.org/$name</a>;<br> index index.php;<br><br> if ( $http_host = &#39;<a href="http://streamzone.ru">streamzone.ru</a>&#39; ) {<br>
 rewrite ^(.*)$ <a href="http://streamzone.org">http://streamzone.org</a>$1 permanent;<br> }<br><br> set $name &quot;&quot;;<br> if ($http_host ~* ^(www.)?([a-z0-9-]+)\.streamzone\.([a-z]+)) {<br>
 set $name &quot;subdomains/$2/httpdocs&quot;;<br> }<br> if ($http_host ~* ^(www.)?streamzone\.([a-z]+)) {<br> set $name &quot;httpdocs&quot;;<br> }<br><br> include /var/www/vhosts/<a href="http://streamzone.org/conf/nginx-rewrite.conf">streamzone.org/conf/nginx-rewrite.conf</a>;<br>
<br> location ~* (announce|scrape)\.php$ {<br> access_log off;<br> return 404;<br> }<br><br> location ~ \.php$ {<br> include /etc/nginx/nginx-php-cgi.conf;<br> fastcgi_param SCRIPT_FILENAME /var/www/vhosts/<a href="http://streamzone.org/$name$fastcgi_script_name">streamzone.org/$name$fastcgi_script_name</a>;<br>
 }<br><br> location ~ userbar\.php/(.*)\.png$ {<br> include /etc/nginx/nginx-php-cgi.conf;<br> fastcgi_param SCRIPT_FILENAME /var/www/vhosts/<a href="http://streamzone.org/$name/tracker/userbar.php">streamzone.org/$name/tracker/userbar.php</a>;<br>
 }<br><br><br> # Static files location<br> location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|7z|htm|html)$ {<br> root /var/www/vhosts/<a href="http://streamzone.org/$name">streamzone.org/$name</a>;<br>
 expires 10d;<br> access_log off;<br> }<br>}<br><br>       <br> include /var/www/vhosts/<a href="http://streamzone.org/conf/nginx-cgi.conf">streamzone.org/conf/nginx-cgi.conf</a>;<br>
 include /var/www/vhosts/<a href="http://happymommies.ru/conf/nginx-cgi.conf">happymommies.ru/conf/nginx-cgi.conf</a>;<br><br>   <br>[error] 31318#0: *2371 directory index of &quot;/var/www/vhosts/<a href="http://happymommies.ru//">happymommies.ru//</a>&quot;<br>

is forbidden, client: 95.169.186.124, server: <a href="http://happymommies.ru">happymommies.ru</a>, request: &quot;GET /<br>
HTTP/1.1&quot;, host: &quot;<a href="http://streamzone.org">streamzone.org</a>&quot;<br><br>    access   <a href="http://happymommies.ru">happymommies.ru</a><br>[23/Apr/2010:07:30:26 +0200] 95.169.186.124 404 &quot;GET /tracker/ HTTP/1.1&quot; 169 &quot;-&quot; &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.12) Gecko/2009070611 (.NET CLR 3.5.30729)&quot;<br>
[23/Apr/2010:07:30:48 +0200] 95.169.186.124 403 &quot;GET / HTTP/1.1&quot; 169 &quot;-&quot; &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.12) Gecko/2009070611 (.NET CLR 3.5.30729)&quot;<br><br><br><br><div class="gmail_quote">
23  2010 . 1:25  Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> :<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello!<br>
<div class="im"><br>
On Thu, Apr 22, 2010 at 10:53:57PM +0400, <a href="mailto:nafania293@gmail.com">nafania293@gmail.com</a> wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt;    .<br>
&gt;   ,   nginx&#39;    .<br>
&gt;    .<br>
&gt;<br>
&gt;   3proxy . ,  -  .<br>
&gt;<br>
&gt;      ,    .  - <br>
&gt; 403  404.   ,     -  .<br>
&gt;        <br>
&gt; [error] 31318#0: *2371 directory index of &quot;/var/www/vhosts/_1//&quot;<br>
&gt; is forbidden, client: _, server: _1, request: &quot;GET /<br>
&gt; HTTP/1.1&quot;, host: &quot;_2&quot;<br>
&gt;<br>
&gt;      _2,   -    <br>
&gt;  .      .    <br>
&gt;  3proxy    _2,    ,  ,  <br>
&gt; -   ,   .<br>
&gt;<br>
&gt;   ,   - ,   <br>
&gt; server {<br>
&gt;     listen _:80;<br>
&gt;<br>
&gt;     server_name _2 www._2;<br>
&gt;<br>
&gt;     ...<br>
&gt; }<br>
<br>
</div></div>    :<br>
<br>
<a href="http://nginx.org/en/docs/http/request_processing.html" target="_blank">http://nginx.org/en/docs/http/request_processing.html</a><br>
<br>
   -   ,   &quot; &quot; <br>
     Σ   ip-.<br>
<br>
      ,    <br>
    :<br>
<br>
1. &quot;_2&quot;  &quot;_1&quot;    ip-.<br>
<br>
2.    nginx&#39;  ip-,   &quot;_2&quot; <br>
,       (&quot;_1&quot;).   <br>
  ip -        <br>
/etc/hosts.<br>
<br>
Maxim Dounin<br>
<br>
p.s.    ͣ  ip-     <br>
,   :      -  <br>
  ,    -     -<br>
,      .<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://nginx.org/mailman/listinfo/nginx-ru</a><br>
</div></div></blockquote></div><br>