2019独角兽企业重金招聘Python工程师标准>>>

`

user nginx nginx; worker_processes 2;

#error_log logs/error.log; error_log logs/error.log notice; #error_log logs/error.log info;

pid logs/nginx.pid; google_perftools_profiles /tmp/tcmalloc; worker_rlimit_nofile 65535;

events { worker_connections 65535; 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" "$request_time" "$request_body"';#access_log  logs/access.log  main;sendfile        on;
tcp_nopush      on;
tcp_nodelay     on;
server_tokens   off;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 30m;
client_body_buffer_size 1024k;#keepalive_timeout  0;
keepalive_timeout  65;
geoip_country /setup/nginx/conf/GeoIP.dat;
proxy_connect_timeout   60;
proxy_send_timeout      60;
proxy_read_timeout      60;
proxy_buffer_size       256k;
proxy_buffers           8 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;

fastcgi_connect_timeout 300;

fastcgi_send_timeout 300;

fastcgi_read_timeout 300;

fastcgi_buffer_size 64k;

fastcgi_buffers 4 64k;

fastcgi_busy_buffers_size 128k;

fastcgi_temp_file_write_size 128k;

 gzip on;gzip_min_length  5k;gzip_buffers     16 8k;gzip_http_version 1.1;gzip_comp_level 6;gzip_types application/javascript text/plain text/css text/js application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;gzip_vary on;gzip_proxied any; underscores_in_headers on;  upstream testd.skg.com {

server 10.24.167.199:8085 weight=100 max_fails=3 fail_timeout=30s; }

upstream testlogin.skg.com { server 10.24.167.199:8085 weight=100 max_fails=3 fail_timeout=30s; }

upstream testskg.skg.com { server 10.24.167.199:8085 weight=100 max_fails=3 fail_timeout=30s; }

upstream testo.skg.com { server 10.24.167.199:8089 weight=100 max_fails=3 fail_timeout=30s; }

upstream testwap.skg.com { server 10.24.167.199:8088 weight=100 max_fails=3 fail_timeout=30s; }

 server {listen       80;server_name  test.tatatoutiao.com;underscores_in_headers on;#charset koi8-r;access_log  logs/test.tatatoutiao.com.access.log  main;location / {index  index.html index.htm index.jsp;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;proxy_pass http://10.24.167.199:8080;}}         server {listen       80;server_name  testwap.tatatoutiao.com;#charset koi8-r;access_log  logs/testwap.tatatoutiao.com.access.log  main;#location  / {#    root /setup/nginx/tata;#   index  index.htm index.html;#  access_log off;#        }location / {index  index.html index.htm index.jsp;proxy_pass http://10.24.167.199:8080;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}

server { listen 80; server_name testapi.tatatoutiao.com ;

    #charset koi8-r;access_log  logs/testapi.tatatoutiao.com.access.log  main;location / {index  index.html index.htm index.jsp;proxy_pass http://10.24.167.199:8082;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}

server { listen 80; server_name testadmin.tatatoutiao.com;

    #charset koi8-r;access_log  logs/testadmin.tatatoutiao.com.access.log  main;location / {index  index.html index.htm index.jsp;proxy_pass http://10.24.167.199:8083;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}server {listen       80;server_name  lifetest.skg.com;underscores_in_headers on;#charset koi8-r;access_log  logs/lifetest.skg.com.access.log  main;location / {index  index.html index.htm index.jsp;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;proxy_pass http://10.24.167.199:8080;}}         server {listen       80;server_name  lifetestwap.skg.com;#charset koi8-r;access_log  logs/lifetestwap.skg.com.access.log  main;#location  / {#    root /setup/nginx/tata;#   index  index.htm index.html;#  access_log off;#        }location  /bbswx/ {index  index.html index.htm index.jsp;proxy_pass   http://10.24.167.199:8080;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;add_header From m.skg.com;proxy_cookie_path /bbswx/   /;proxy_set_header Cookie $http_cookie;}location  /styles/bbswx/ {index  index.html index.htm index.jsp; client_max_body_size    100m; proxy_pass   http://10.24.167.199:8080; proxy_set_header Host $host;         proxy_set_header X-Forward-For $remote_addr; proxy_set_header X-Real-IP $remote_addr; }location  /scripts/bbswx/ {index  index.html index.htm index.jsp; client_max_body_size    100m; proxy_pass   http://10.24.167.199:8080; proxy_set_header Host $host;         proxy_set_header X-Forward-For $remote_addr; proxy_set_header X-Real-IP $remote_addr; }location / {index  index.html index.htm index.jsp;proxy_pass http://10.24.167.199:8080;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}

server { listen 80; server_name lifetestapi.skg.com ;

    #charset koi8-r;access_log  logs/lifetestapi.skg.com.access.log  main;location / {index  index.html index.htm index.jsp;proxy_pass http://10.24.167.199:8082;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}

server { listen 80; server_name lifetestadmin.skg.com;

    #charset koi8-r;access_log  logs/lifetestadmin.skg.com.access.log  main;location / {index  index.html index.htm index.jsp;proxy_pass http://10.24.167.199:8083;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}server {listen       80;server_name testskg.skg.com; #charset koi8-r;if ( $request_uri ~* ^/index\.htm$ ){rewrite  ^/index\.htm$   http://testskg.skg.com permanent;}       #登录页面验证码从后端动态获取location = /generateImage.html {proxy_pass http://testd.skg.com/generateImage.html;}#location ^~ /scripts/#  {#root /usr/local/nginx/html/;#access_log off;#   }#location ^~ /styles/#   {# root /usr/local/nginx/html/;# access_log off;#  }location = /category/ {root /usr/local/nginx/html/category;index  index.htm index.html category.html category.htm;access_log off;if  (!-e $request_filename) {proxy_pass   http://testskg.skg.com;}}location ~* \.(css|js)${root /usr/local/nginx/html/;access_log off;expires 1h;}location / {root /usr/local/nginx/html; index  index.htm index.html;if  (!-e $request_filename) {proxy_pass   http://testskg.skg.com;}}location /storefront/member/toLogin.html {rewrite . https://testlogin.skg.com/storefront/member/toLogin.html;}}#   location / {#     root   html;#     index  index.html index.htm index.jsp;#     client_max_body_size    100m;#     proxy_pass   http://testskg.skg.com;#     proxy_set_header Host $host;    #     proxy_set_header X-Forward-For $remote_addr;#     proxy_set_header X-Real-IP $remote_addr;#             }# }server {listen       80;server_name testwap.skg.com ; #charset koi8-r;#access_log  logs/host.access.log  main;#rewrite "^/product\/([0-9]{15}).htm/?$" http://testwap.skg.com/product/$1.html permanent;
#rewrite "^/category\/([a-z-A-Z]+)_([a-z-A-Z]+).htm/?$" http://testwap.skg.com/category/$1_$2.html permanent;location  /bbswx/ {#root   html;#  index  index.html index.htm index.jsp;#  client_max_body_size    100m;#  proxy_pass   http://10.24.167.199:8080;#proxy_cookie_path /bbswx/ /;#proxy_set_header Cookie $http_cookie;#  proxy_set_header Host $host;  #  proxy_set_header X-Forward-For $remote_addr;# proxy_set_header X-Real-IP $remote_addr;if ($host ~* testwap.skg.com) {rewrite ^/(.*)$ http://lifetestwap.skg.com/$1 permanent;}}location  /styles/bbswx/ { #root   html; # index  index.html index.htm index.jsp; # client_max_body_size    100m; # proxy_pass   http://10.24.167.199:8080; # proxy_set_header Host $host;         # proxy_set_header X-Forward-For $remote_addr; # proxy_set_header X-Real-IP $remote_addr; if ($host ~* testwap.skg.com) {rewrite ^/(.*)$ http://lifetestwap.skg.com/$1 permanent;}} location  /scripts/bbswx/ { #root   html; #index  index.html index.htm index.jsp; #client_max_body_size    100m; #proxy_pass   http://10.24.167.199:8080; #proxy_set_header Host $host;         #proxy_set_header X-Forward-For $remote_addr; #proxy_set_header X-Real-IP $remote_addr; if ($host ~* testwap.skg.com) {rewrite ^/(.*)$ http://lifetestwap.skg.com/$1 permanent;}}location /shopfront/ec/pay/ {index  index.html index.htm index.jsp;proxy_pass   http://10.24.167.199:8089;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;add_header From testwap.skg.com;proxy_cookie_path /shopfront/ec/pay/  /;proxy_set_header Cookie $http_cookie;}location  / {#root   html;index  index.html index.htm index.jsp;client_max_body_size    100m;proxy_pass   http://10.24.167.199:8088;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}server {#listen       8000;listen       80;server_name  testapi.skg.com;
access_log logs/testapi.skg.com.access.log main;location / {#root   html;#index  index.html index.htm;proxy_pass   http://10.24.167.199:8086;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;client_max_body_size    1000m;}}server {listen       80;server_name testadmin.skg.com;#charset koi8-r;#access_log  logs/host.access.log  main;location / {#root   html;index  index.html index.htm index.jsp;#client_max_body_size    100m;proxy_pass   http://10.24.167.199:8087;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}server {listen       443;server_name testadmin.skg.com;#charset koi8-r;#access_log  logs/host.access.log  main;ssl on;ssl_certificate /usr/local/key/server.cer;ssl_certificate_key /usr/local/key/server2.key;ssl_session_timeout 5m;#access_log /var/log/nginx/access.log;#error_log /var/log/nginx/error.log;ssl_protocols SSLv2 SSLv3 TLSv1;ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLV2:+EXP;ssl_prefer_server_ciphers on; location / {#root   html;index  index.html index.htm index.jsp;#client_max_body_size    100m;proxy_pass   http://10.24.167.199:8087;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}server {listen         80;server_name testd.skg.com;location = /generateImage.html {proxy_pass http://testd.skg.com/generateImage.html;}location /storefront/member/toLogin.html {rewrite . https://testlogin.skg.com/storefront/member/toLogin.html;}location /storefront/member/checkLogin.html{proxy_pass http://testd.skg.com/storefront/member/checkLogin.html;}location /storefront/member/cookieLogin.html{proxy_pass http://testd.skg.com/storefront/member/checkLogin.html;}location /wap.html{proxy_pass http://testd.skg.com/wap.html;}location /storefront/member/checkCertificateView.html{rewrite .  https://testlogin.skg.com/storefront/member/checkCertificateView.html;}location / {proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;proxy_pass   http://testd.skg.com;}}server {listen       443;server_name testlogin.skg.com; ssl on;ssl_certificate /usr/local/key/server.cer;ssl_certificate_key /usr/local/key/server2.key;ssl_session_timeout 5m;#access_log /var/log/nginx/access.log;#error_log /var/log/nginx/error.log;ssl_protocols SSLv2 SSLv3 TLSv1;ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLV2:+EXP;ssl_prefer_server_ciphers on; #charset koi8-r;location /storefront/member/toLogin.html{proxy_pass http://testd.skg.com/storefront/member/toLogin.html;}location /storefront/member/getValidCode.html{proxy_pass http://testd.skg.com/storefront/member/getValidCode.html;}location /storefront/member/login.html{proxy_pass http://testd.skg.com/storefront/member/login.html;}location /storefront/member/checkLogin.html{proxy_pass http://testd.skg.com/storefront/member/checkLogin.html;}location /storefront/member/cookieLogin.html{proxy_pass http://testd.skg.com/storefront/member/cookieLogin.html;}location /storefront/member/checkCertificateView.html{proxy_pass http://testd.skg.com/storefront/member/checkCertificateView.html;}location /storefront/member/registerByEmail.html{proxy_pass http://testd.skg.com/storefront/member/registerByEmail.html;}location /storefront/member/registerByMobile.html{proxy_pass http://testd.skg.com/storefront/member/registerByMobile.html;}location /storefront/member/logout.html{proxy_pass http://testd.skg.com/storefront/member/logout.html;}location /generateImage.html{proxy_pass http://testd.skg.com/generateImage.html;}location ~* \.(css|js)${root /usr/local/nginx/html/;access_log off;}

}

server {listen       443;server_name testskg.skg.com; ssl on;ssl_certificate /usr/local/key/server.cer;ssl_certificate_key /usr/local/key/server2.key;ssl_session_timeout 5m;#access_log /var/log/nginx/access.log;#error_log /var/log/nginx/error.log;ssl_protocols SSLv2 SSLv3 TLSv1;ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLV2:+EXP;ssl_prefer_server_ciphers on; #charset koi8-r;if ( $request_uri ~* ^/index\.htm$ ){rewrite  ^/index\.htm$   http://testskg.skg.com permanent;}       #location = / {
#      root /usr/local/nginx/html;
#      index  index.htm index.html;
#      access_log off;
#     }location ^~ /scripts/{root /usr/local/nginx/html/scripts;access_log off;}location ^~ /styles/{root /usr/local/nginx/html/styles;access_log off;}}server {listen       80;server_name  testo.skg.com;location / {index  index.html index.htm index.jsp;proxy_pass http://testo.skg.com;proxy_set_header Host $host;proxy_set_header X-Forward-For $remote_addr;proxy_set_header X-Real-IP $remote_addr;}}

}

`

转载于:https://my.oschina.net/u/2419285/blog/844848

其他大神的配置 nginx 配置参考相关推荐

  1. vs2017添加C语言模版,「vs2017 项目模板」有没有大神知道vs2017怎么配置wdk10开发x64驱动...

    vs2017 项目模板: 有没有大神知道vs2017怎么配置wdk10开发x64驱动 设置目标或测试计算机是配置计算机以便进行自动驱动程序部署.测试和调试的过程.一个测试和调试环境具有两台计算机:主计 ...

  2. aoc显示器开机显示计算机,_求各路大神帮忙解决,配置如下 电脑开机AOC显示器显示无信号,每次都要重新拔了再插才有画面_...

    网友求助:_求各路大神帮忙解决,配置如下 电脑开机AOC显示器显示无信号,每次都要重新拔了再插才有画面_ 问题求各路大神帮忙解决,配置如下 电脑开机AOC显示器显示无信号,每次都要重新拔了再插才有画面 ...

  3. 大神教你Nginx常用基础配置方案

    Nginx的fastcgi模块参数设置 Nginx 有两个配置文件fastcgi_params.fastcgi.conf,两者唯一的区别是,fastcgi.conf 多一个参数 SCRIPT_FILE ...

  4. 旗舰计算机系统蓝图,【求助】求助大神给这些蓝图一个参考定价

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 龙卷风级蓝图1战列巡洋舰蓝图蓝图蓝图拷贝 - 流程:10 - 材料效率:10 - 时间效率:20 龙卷风级蓝图1战列巡洋舰蓝图蓝图蓝图拷贝 - 流程:1 ...

  5. 配置nginx反向代理jira并实现https

    摘要: 配置nginx反向代理jira并实现https 配置Tomcat 在本文中,我们设置可以在地址http://jira.aniu.so/jira(标准HTTP端口80)上访问JIRA,而JIRA ...

  6. nginx 配置|禁止访问规则

    文章目录 1. nginx配置详解 1.1 nginx中remote_addr和x_forwarded_for参数使用说明 1.2 简单说明下nginx location匹配规则 1.3 Nginx ...

  7. FastDFS - Linux下搭建FastDFS 文件服务器与Nginx配置(部署和运维)

    朋友做了个视频在线App,线上运维我来帮他折腾.此篇记录部署步骤,方便下次直接查看使用.部分内容来源于网络,如侵联删. 本篇文章只叙述FastDFS的部署与运维,简介请点击FastDFS - 快速的分 ...

  8. Mac 配置Nginx域名转发

    配置环境 MacOS Monterey 12.0.1 提前运行端口88的Web项目 1.修改hosts文件 打开host文件 sudo vi /etc/hosts XaysdeMacBook-Pro: ...

  9. 虚拟机+Ubuntu18.04+ORB_SLAM3+ROS环境配置(配置环境的过程以及途中出现的错误,解决方法)

    前提概要:因为导师的科研安排,需要做三维重建,并基于Jeston的硬件平台来完成,由于板子还没有到(应该说报销的费用还没到,没钱买QAQ),所以先用虚拟机模拟配置一下环境.写这篇文章也是为了板子到了以 ...

最新文章

  1. 5G+AI:影响未来的新趋势
  2. DeepMind提出「心智神经网络ToMnet」,训练机器的「理解」能力
  3. base cap 分布式_高并发架构系列:详解分布式一致性ACID、CAP、BASE,以及区别
  4. OpenCV4每日一练day2:运行OpenCV示例程序(边缘检测、kmeans聚类)
  5. Linux下如何用pxe安装虚拟机?
  6. Unity UGUI——UI基础,Canvas
  7. 转:Git: 对象原理
  8. 高质量实时渲染课程笔记(一)——介绍和概览(高质量实时渲染的含义、学习前置、涉及的内容目录、发展史)
  9. python转exe
  10. linux-arm下如何开启tftp传输,linux-arm间tftp命令的安装、使用
  11. python按任意键退出_python按任意键继续程序
  12. HDU - 4567 Brilliant Programmers Show 2013长沙邀请赛
  13. 房间类游戏后台框架(一)—介绍
  14. 如何设置vscode默认谷歌浏览器打开
  15. 基于FaceX-Zoo实现的Face Mask Adding人脸戴口罩
  16. 43款设计师必备英文设计字体-书法字体
  17. 假定1km长的CSMA/CD网络的数据率为1Gb/s。设信号在网络上的传播速率为200000km/s。求能够使用此协议的最短帧长。
  18. 面试笔试算法-二分专题
  19. uniappAndroid离线打包 小米审核不通过
  20. 交通状态预测 | Python实现基于扩散卷积和GNN的交通流时空预测

热门文章

  1. redis 备份导出rdb_Redis数据迁移利器之redisshake
  2. 如何禁用win7的ASLR
  3. 121. 买卖股票的最佳时机 golang
  4. 242. 有效的字母异位词 golang
  5. C语言模拟实现标准库函数之strcpy()
  6. c++中的set容器和multiset容器
  7. Qt for Android环境配置
  8. 类的成员函数可以访问属于该类的任意对象的私有变量
  9. 3-V2-类和对象 -- const内联 静态成员 友元
  10. 安装win10和Linux双系统的个人经验