免费邮箱 |加入收藏 | 会员中心 | 我要投稿 | RSS
您当前的位置:首页 > PHP专区 > PHP技巧

PHP企业级应用之常见缓存技术篇

时间:2011-05-21 09:50:36  来源:站内  作者:潘春会

upstream bspstylesvr {
server 10.10.10.202:80   weight=1;
}

upstream bsphelpsvr {
server 10.10.10.204:80   weight=1;
}

upstream bspwsisvr {
server 10.10.10.203:80   weight=1;
}

upstream bspadminsvr {
server 10.10.10.222:80   weight=1;
}

upstream bspbuyersvr {
server 10.10.10.223:80   weight=1;
}

upstream bspsellersvr {
server 10.10.10.225:80   weight=1;
}
upstream  bsploginsvr  {
server 10.10.10.220:443  weight=1;
}
upstream  bspregistersvr  {
server 10.10.10.220:80  weight=1;
}
log_format  test_com  ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” “$http_user_agent” ‘;
#——————————————————————–
#img.test.com
server {
listen       10.10.10.230:80;
server_name  img.test.com;
location / {
proxy_pass      http://bspimgsvr;
include         proxy_setting.conf;
}
access_log  logs/img.log  test_com;
}

#style.test.com
server {
listen       10.10.10.230:80;
server_name  style.test.com;
location / {
proxy_pass      http://bspstylesvr;
include         proxy_setting.conf;
}
access_log  logs/style.log  test_com;
}

#help.test.com
server {
listen       10.10.10.230:80;
server_name  help.test.com;
location / {
proxy_pass      http://bsphelpsvr;
include         proxy_setting.conf;
}
access_log  logs/help.log  test_com;
}

#admin.test.com
server {
listen       10.10.10.230:80;
server_name  admin.test.com;
location / {
proxy_pass      http://bspadminsvr;
include         proxy_setting.conf;
}
access_log  logs/admin.log  test_com;
}

#buyer.test.com
server {
listen       10.10.10.230:80;
server_name  buyer.test.com;
location / {
proxy_pass      http://bspbuyersvr;
include         proxy_setting.conf;
}
access_log  logs/buyer.log  test_com;
}

#seller.test.com
server {
listen       10.10.10.230:80;
server_name  seller.test.com;
location / {
proxy_pass      http://bspsellersvr;
include         proxy_setting.conf;
}
access_log  logs/seller.log  test_com;
}
#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;

来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
如何找出DHCP地址池里未使用的IP地址
如何找出DHCP地址池里
国内常用的DNS列表
国内常用的DNS列表
Linux邮件服务器软件比较
Linux邮件服务器软件比
学用纯CSS打造可折叠树状菜单
学用纯CSS打造可折叠树
相关文章
栏目更新
栏目热门