Re: + AJAX

Alexander Kochetov kochetov.alexander gmail.com
3 14:11:55 MSK 2010


1)        "proxy_cache zone_name",
-    off, ..    .

2)  http://host.ru/controller?cmd=page_depart_get_page&num=60
   (location / { ...)
   "location ~* /page_dep.jsp {"  .

,  ӣ ݣ    ...

--
Alexander Kochetov


3  2010 . 13:32  Alexander Petrovsky
<askjuise at gmail.com> :
>>  ,     , , ,
>>   -  .
>> ,          .
>
>  .
>
>   http://host.ru/page_dep.jsp,    
>     . Nginx  
> page_dep.jsp,    ţ  ,   
> .
>
>
> :
>
> http {
>  include  mime.types;
>  default_type  application/octet-stream;
>
>  server_tokens off;
>
>  access_log /var/log/nginx.access.log;
>  error_log /var/log/nginx.error.log;
>
>  sendfile on;
>  tcp_nopush on;
>
>  keepalive_timeout 65;
>  tcp_nodelay on;
>
>  gzip on;
>  gzip_disable msie6;
>
>  client_body_buffer_size 5m;
>
>  proxy_cache_path /var/cache/nginx levels=1:2
> keys_zone=primary_zone:10m inactive=1d max_size=1024m;
>  server {
>  listen 80;
>  server_name sharlize.golodnyj.ru;
>
>  charset utf-8;
>
>  location / {
>  proxy_pass http://localhost:8180/;
>  proxy_set_header Host $host;
>  proxy_set_header X-Real-IP $remote_addr;
>  proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
>
> # error_page 404 /404.html;
> # error_page 500 502 503 504 /index.html;
>  }
>
>  location ~* /page_dep.jsp {
>  proxy_pass http://localhost:8180;
>  proxy_set_header Host $host;
>  proxy_set_header X-Real-IP $remote_addr;
>  proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
>  }
>  }
> }
>
>
>   ,  location /page_dep.jsp   proxy_cache
> off;    .
>
> ,    ,    :
>
> http://host.ru/controller?cmd=page_depart_get_page&num=60
> http://host.ru/controller?cmd=page_depart_get_page&num=70
> http://host.ru/controller?cmd=page_depart_get_page&num=80
>
> /page_dep.jsp    .
>
> --
>   / Alexander Petrovsky,
>
> ICQ: 350342118
> Jabber: juise at jabber.ru
> Phone: +7 914 8 820 815
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
>


nginx-ru