符合中小企业对网站设计、功能常规化式的企业展示型网站建设
本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...
商城网站建设因基本功能的需求不同费用上面也有很大的差别...
手机微信网站开发、微信官网、微信商城网站...
本文小编为大家详细介绍“nginx如何部署配置文件”,内容详细,步骤清晰,细节处理妥当,希望这篇“nginx如何部署配置文件”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。
10年积累的做网站、成都网站制作经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先做网站设计后付款的网站建设流程,更有云城免费网站建设让你可以放心的选择与我们合作。
user nobody; worker_processes 2; error_log logs/error.log; pid logs/nginx.pid; events { worker_connections 10240; accept_mutex on; multi_accept on; use epoll; } http { include 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 logs/access.log main; sendfile on; tcp_nopush on; keepalive_timeout 30; keepalive_requests 50000; reset_timeout_connection on; send_timeout 3; gzip on; gzip_min_length 1024; gzip_buffers 16 8k; gzip_types text/plain application/x-javascript text/css application/xml image/jpeg image/gif image/png; gzip_comp_level 6; gzip_disable "MSIE 6\."; proxy_cache_path /usr/local/nginx/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g; server{ listen 80; server_name www.pesomarket.com pesomarket.com; rewrite /(.*) https://www.pesomarket.com/$1 permanent; } server{ listen 443 ssl; server_name www.pesomarket.com pesomarket.com; ssl_certificate /usr/local/nginx/cert/2286250_pesomarket.com.pem; ssl_certificate_key /usr/local/nginx/cert/2286250_pesomarket.com.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ALL:!DH:!EXPORT:!RC4:+HIGH:+MEDIUM:!eNULL; ssl_prefer_server_ciphers on; proxy_buffering on; proxy_buffer_size 4k; proxy_buffers 8 4k; proxy_busy_buffers_size 16k; proxy_temp_path /usr/local/nginx/proxy_temp 1 2; proxy_max_temp_file_size 100M; proxy_temp_file_write_size 16k; location /{ proxy_cache my_zone; root /usr/local/android/marketone; index index.html index.htm; error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } location /api/ { proxy_pass http://127.0.0.1:8081/estrendMarket/; index index.html index.htm; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } }
读到这里,这篇“nginx如何部署配置文件”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注创新互联行业资讯频道。