• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > 编程与数据库 > php编程 >

PHP企业级应用缓存技术详解(4)

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-02-08点击:

  }

  #wsi.test.com

  server {

  listen 10.10.10.230:80;

  server_name wsi.test.com;

  location / {

  proxy_pass http://bspwsisvr;

  include proxy_setting.conf;

  }

  access_log logs/wsi.log test_com;

  }

  #www.test.com

  server {

  listen 10.10.10.230:80;

  server_name www.test.com *.test.com;

  location ~ ^/NginxStatus/ {

  stub_status on;

  access_log off;

  }

  location / {

  proxy_pass http://bspfrontsvr;

  include proxy_setting.conf;

  }

  access_log logs/www.log test_com;

  error_page 500 502 503 504 /50x.html;

  location = /50x.html {

  root html;

  }

  }

  #login.test.com

  server {

  listen 10.10.10.230:443;

  server_name login.test.com;

  ssl on;

  ssl_certificate cert.pem;

  ssl_certificate_key cert.key;

  ssl_session_timeout 5m;

  ssl_protocols SSLv2 SSLv3 TLSv1;

  ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;

  ssl_prefer_server_ciphers on;

  location / {

  proxy_pass https://bsploginsvr;

  include proxy_setting.conf;

  }

  access_log logs/login.log test_com;

  }

  #login.test.com for register

  server {

  listen 10.10.10.230:80;

  server_name login.test.com;

  location / {

  proxy_pass http://bspregistersvr;

  include proxy_setting.conf;

  }

  access_log logs/register.log test_com;

  }

  }

  

  proxy_redirect off;

  proxy_set_header Host $host;

  proxy_set_header X-Real-IP $remote_addr;

  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

  client_max_body_size 10m;

  client_body_buffer_size 128k;

  proxy_connect_timeout 90;

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ