|
|
|
|
áòèé÷ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ëÅÛÉÒÏ×ÁÎÉÅ + AJAX
- To: nginx-ru@xxxxxxxxx
- Subject: ëÅÛÉÒÏ×ÁÎÉÅ + AJAX
- From: Alexander Petrovsky <askjuise@xxxxxxxxx>
- Date: Wed, 3 Feb 2010 15:46:52 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=W2Ti/Lb4H0+a/Zj9icZdfj0K2NvqAI4oaYr1a51SCMs=; b=eLeqOeLCvvT9CbZYOTeimtB9d/TnxmJE5fqnVN3GPBkcshKVi+Auzzz3SoKS9N//IE 8+xo4fAdlp+PwlW+i3qD8HgcNbz4nUzc33zuJqNmKzmarOfAm/qWFIYC0vVs0roZhrx4 N/Z8S4pNIv9QlTU7kPwSG5J6fmgCWHWP0nCe4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZGb20jkXSnChlQefDkDvAFq+RIXi8q2lq441hPJwsdNCttSbX9JX3y0JOI1+8nzjFi aWxVykwBcvVwV6t6SqYunrqRUzkD2BUAud0ZMUVcpopWkA3K0A19MrKP0yTRnCxJpeSS 6IilaXcdeSU5vEenYzFgt5Z8n+FLTm35eYMUs=
äÏÂÒÏÅ ×ÒÅÍÑ ÓÕÔÏË!
éÓÐÏÌØÚÕÀ Nginx ËÁË ËÅÛÉÒÕÀÝÉÊ ÐÒÏËÓÉ-ÓÅÒ×ÅÒ, ÓÔÏÑÝÉÊ ÐÅÒÅÄ Tomcat. ïÄÉÎ ÉÚ ÒÁÚÄÅÌÏ× ÓÁÊÔÁ, ÒÅÁÌÉÚÏ×ÁÎ ÞÅÒÅÚ AJAX. ðÒÉ ÐÅÒÅÈÏÄÅ ÐÏ ÓÓÙÌËÁÍ ×ÒÏÄÅ:
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
÷ÙÄÁÅÔÓÑ ÓÔÒÁÎÉÃÁ http://host.ru/page_dep.jsp, Ó ÒÁÚÎÙÍ ËÏÎÔÅÎÔÏÍ × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÓÓÙÌÏË ÐÒÉ×ÅÄÅÎÎÙÈ ×ÙÛÅ. Nginx ËÅÛÉÒÕÅÔ ÓÔÒÁÎÉÃÕ page_dep.jsp, ÔÅÍ ÓÁÍÙÍ ÄÅÌÁÑ Å£ ËÏÎÔÅÎÔ ÏÄÉÎÁËÏ×ÙÍ, ×ÎÅ ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÓÓÙÌÏË.
õ×ÁÖÁÅÍÙÅ, ÐÏÄÓËÁÖÉÔÅ ÐÏÖÁÌÕÊÓÔÁ, ËÁË ÓÄÅÌÁÔØ ËÅÛÉÒÏ×ÁÎÉÅ, ÞÔÏ ÓÔÒÁÎÉÃÁ 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;
ššššššššššššššš proxy_cachešššššššššššš off; ššššššš } ššš } }
-- ðÅÔÒÏ×ÓËÉÊ áÌÅËÓÁÎÄÒ / Alexander Petrovsky,
ICQ: 350342118 Jabber: juise@xxxxxxxxx
Phone: +7 914 8 820 815
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|
|
|