歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

nginx配置示例

# 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 © Linux教程網 All Rights Reserved