-  , ,        location   ?<br><br><div class="gmail_quote">7  2010. 17:48  Sheh <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;">.  .   <br>
    ,  <br>
.<br>
  nginx + Tomcat<br>
֣  (<br>
  )   /var/www/<br>
  (,   .) <br>
/usr/share/tomcat6/webapps/<br>
<br>
,  ֣  ̣ <br>
 ngix&#39;.   ?<br>
<br>
<br>
  [code]<br>
server {<br>
    listen   <a href="http://192.168.1.100:80" target="_blank">192.168.1.100:80</a>;<br>
    server_name <a href="http://mydomen.net" target="_blank">mydomen.net</a> <a href="http://www.mydomen.net" target="_blank">www.mydomen.net</a>;<br>
<br>
    charset utf-8;<br>
    client_max_body_size 1m;<br>
<br>
    #access_log logs/host.access.log main;<br>
<br>
    location / {<br>
#      root  /usr/share/tomcat6/webapps/;<br>
      proxy_pass     <a href="http://127.0.0.1:8080" target="_blank">http://127.0.0.1:8080</a>;<br>
      proxy_redirect   off;<br>
      proxy_set_header  Host       $host;<br>
      proxy_set_header  X-Real-IP    $remote_addr;<br>
      proxy_set_header  X-Forwarded-For<br>
$proxy_add_x_forwarded_for;<br>
<br>
      client_max_body_size    10m;<br>
      client_body_buffer_size  128k;<br>
      proxy_connect_timeout   90;<br>
      proxy_send_timeout     90;<br>
      proxy_read_timeout     90;<br>
      proxy_buffer_size     4k;<br>
      proxy_buffers       4 32k;<br>
      proxy_busy_buffers_size  64k;<br>
      proxy_temp_file_write_size 64k;<br>
    }<br>
     # Static files location<br>
    location ~* \.(jpg|jpeg|gif|png|js|css|ico) {<br>
      root  /usr/share/tomcat6/webapps/;<br>
    }<br>
    location ~* \.(jpg|jpeg|gif|png) {<br>
      root /var/www/;<br>
    }<br>
  }<br>
[/code]<br>
<br>
 ,   <br>
, .. 2  location&#39;<br>
       <br>
(jpg|jpeg|gif|png) <br>
   1- location<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,127987,127987#msg-127987" target="_blank">http://forum.nginx.org/read.php?21,127987,127987#msg-127987</a><br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br> ,<br> , Ukrhome.net<br>icq# 205349854<br>mailto: <a href="mailto:alexey.bobok@ukrhome.net" target="_blank">alexey.bobok@ukrhome.net</a><br><a href="http://www.ukrhome.net/" target="_blank">http://www.ukrhome.net/</a><br>
<br><img src="http://lh6.ggpht.com/_uqI0hR4rI1E/TG968kR4jaI/AAAAAAAAAA0/uNYjd0YrmS0/image003.gif">Think before you print.<br>