location ~*<br>
^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {<br>
            root /home/username/data/www/<a href="http://site.ru/" target="_blank">site.ru</a>;<br>
            access_log /home/httpd-logs/site.ru.access.log;<br>-           error_page 404 = @fallback;<br>
        }<br><br>  error_page  ,   nginx.   404.  ,     /.   error.log,  . <br clear="all"><br>

Alexandr Vasilenko<br><br><div class="gmail_quote">1  2010. 14:06  Kelkos <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

[i]    <br>
<div class="im">, , location?   <br>
  location,  <br>
</div>.[/i]<br>
     .<br>
     .<br>
<br>
    :<br>
    server {<br>
        listen <a href="http://81.177.11.111:80" target="_blank">81.177.11.111:80</a>;<br>
        server_name <a href="http://site.ru" target="_blank">site.ru</a> <a href="http://www.site.ru" target="_blank">www.site.ru</a>;<br>
        rewrite ^(/manager/.*)$ https://$host$1 permanent;<br>
        location ~*<br>
^/(webstat/|awstats|webmail/|myadmin/|manimg/) {<br>
            proxy_pass <a href="http://81.177.11.111:8080" target="_blank">http://81.177.11.111:8080</a>;<br>
            proxy_redirect <a href="http://site.ru:8080/" target="_blank">http://site.ru:8080/</a> /;<br>
            proxy_set_header Host $host;<br>
            proxy_set_header X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
            proxy_set_header X-Real-IP $remote_addr;<br>
        }<br>
        location / {<br>
            proxy_pass <a href="http://81.177.1.111:8080" target="_blank">http://81.177.1.111:8080</a>;<br>
            proxy_redirect <a href="http://site.ru:8080/" target="_blank">http://site.ru:8080/</a> /;<br>
            proxy_set_header Host $host;<br>
            proxy_set_header X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
            proxy_set_header X-Real-IP $remote_addr;<br>
<div class="im">        }<br>
        location ~*<br>
^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {<br>
            root /home/username/data/www/<a href="http://site.ru" target="_blank">site.ru</a>;<br>
            access_log /home/httpd-logs/site.ru.access.log;<br>
            error_page 404 = @fallback;<br>
        }<br>
</div>        location @fallback {<br>
            proxy_pass <a href="http://81.177.11.111:8080" target="_blank">http://81.177.11.111:8080</a>;<br>
            proxy_set_header Host $host;<br>
            proxy_set_header X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
            proxy_set_header X-Real-IP $remote_addr;<br>
        }<br>
    }<br>
<br>
   .<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,146504,146523#msg-146523" target="_blank">http://forum.nginx.org/read.php?21,146504,146523#msg-146523</a><br>
<div><div></div><div class="h5"><br>
<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>