Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Время отклика
- To: nginx-ru@xxxxxxxxx
- Subject: Время отклика
- From: "Fixid" <nginx-forum@xxxxxxxx>
- Date: Wed, 09 Nov 2011 10:00:35 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=0HSOMMKadY0srdt2wg6H7R+6Vu2T7KWYzWtKO9NEL4g=; b=ttVVs/uZ4RCixBKBMuf+RKLwbcmxaKFiZc7HQKLzcjfdzBsPTUULjYDoMp4QGneG+SkwIZsUNrQgbA6h9fFPWwsxTJ/3dGzU8OeP5iDbvMfm/8HE6I4lnJn4B51v77QK;
Есть фронтенд с NGINX. При заходе на сайт
до начала загрузки (т.е. время
соединения ) около 30 секунд, потом все
нормально, контент загружается быстро.
Как можно уменьшить время отклика?
user nginx;
worker_processes 2;
worker_rlimit_nofile 100000;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 5024;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local]
"$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
gzip on;
gzip_static on;
gzip_comp_level 5;
gzip_min_length 1024;
keepalive_timeout 65;
limit_zone myzone $binary_remote_addr 10m;
# Load config files from the /etc/nginx/conf.d directory
include /etc/nginx/conf.d/*.conf;
server {
listen 80 default;
rewrite ^ https://www.test.com/;
}
}
SSL:
server {
listen 443 default;
server_name www.test.com ;
ssl on;
ssl_certificate /etc/nginx/conf.d/certificate.cer;
ssl_certificate_key /etc/nginx/conf.d/rsa.key;
ssl_session_timeout 10m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
if ($host = "test.com" ) {
rewrite ^ https://www.test.com/;
}
location / {
proxy_pass https://IIS:500/;
proxy_redirect off;
proxy_ignore_client_abort off;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_ignore_headers Expires Cache-Control;
proxy_hide_header Vary;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,218102,218102#msg-218102
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|