Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:



- , , location ?

7 2010. 17:48 Sheh <nginx-forum@xxxxxxxx> :
. .
,
.
nginx + Tomcat
֣ (
) /var/www/
(, .)
/usr/share/tomcat6/webapps/

, ֣ ̣
ngix'. ?


[code]
server {
listen 192.168.1.100:80;
server_name mydomen.net www.mydomen.net;

charset utf-8;
client_max_body_size 1m;

#access_log logs/host.access.log main;

location / {
# root /usr/share/tomcat6/webapps/;
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;

client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
# Static files location
location ~* \.(jpg|jpeg|gif|png|js|css|ico) {
root /usr/share/tomcat6/webapps/;
}
location ~* \.(jpg|jpeg|gif|png) {
root /var/www/;
}
}
[/code]

,
, .. 2 location'

(jpg|jpeg|gif|png)
1- location

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,127987,127987#msg-127987


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru



--
,
, Ukrhome.net
icq# 205349854
mailto: alexey.bobok@xxxxxxxxxxx
http://www.ukrhome.net/

Think before you print.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru

  • Follow-Ups:
  • References:
      • From: Sheh

 




Copyright © Lexa Software, 1996-2009.