nginx 配置文件 2019-12-20
cat /etc/nginx/nginx.conf
user nginx; worker_processes 8; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 65535; 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; keepalive_timeout 65; gzip on; include /etc/nginx/conf.d/*.conf; }
cat /etc/nginx/conf.d/dddjs_game_analys_https_8081.conf
server { listen 8081 ssl; server_name xxxxx.com; server_tokens off; ssl_certificate ssl/xxx.com.crt; ssl_certificate_key ssl/xxx.com.key; ssl_protocols SSLv2 SSLv3 TLSv1.2; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; access_log logs/dddjs_game_analys_https_8081.access.log; error_log logs/dddjs_game_analys_https_8081.error.log; location / { uwsgi_pass 127.0.0.1:9001; include uwsgi_params; #access_log off; } location ~ ^/static/ { add_header Access-Control-Allow-Origin *; root /data/www/game_xxx; #expires 24h; #access_log off; } location ~* ^.+.(mpg|avi|mp3|swf|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|txt|tar|mid|midi|wav|rtf|mpeg)$ { root /data/www/game_analys/static; #access_log off; } location ~* \.(txt|sh|xls|doc|log|sql|svn|tar|gz|svn-base|xml|conf|py) { root ~; deny all; #access_log off; } }
一些事情一直在干,说不定以后就结果了呢
本文来自博客园,作者:chenjianwen,转载请注明原文链接:https://www.cnblogs.com/chenjw-note/p/12072274.html