Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程

nginx配置示例

日期:2017/1/20 17:35:49      編輯:Linux系統常見問題解答
# mvtp_web config # upstream mysite { server 192.168.1.9:8080; } server { listen 8080; proxy_redirect off; include /etc/nginx/proxy_params; listen 443; ## listen for ipv4; this line is default and implied server_name tanzhi.sinaapp.com;   ssl on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; location = / { proxy_pass https://mysite; }     location ~ /static/ { root /var/www/XXX/static; expires 30d; } location / { proxy_pass https://mysite; #proxy_redirect off;   } #include /etc/nginx/proxy_params; client_header_buffer_size 32k; large_client_header_buffers 4 16k; client_max_body_size 300m; client_body_buffer_size 128k; proxy_connect_timeout 600; proxy_read_timeout 600; proxy_send_timeout 600; proxy_buffer_size 64k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; }
Copyright © Windows教程網 All Rights Reserved