web服务nginx
upstream kkweb{
server 127.0.0.1:805;
}
upstream kkadmin{
server 127.0.0.1:804;
}
upstream kklivecode{
server 127.0.0.1:8199;
}
server{
listen 80;
server_name *.kk.com;
index index.html index.htm index.php;
root /opt/kk/php/web;
location ~ ^(.+\.php)(.*)${
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /qrcodeManager/{
proxy_pass http://kklivecode;
}
location /qrcodePage/{
proxy_pass http://kklivecode;
}
location /livecode/{
proxy_pass http://kklivecode;
}
location /{
proxy_pass http://kkweb;
}
access_log /usr/local/nginx/logs/kktest_access.log;
}
server{
listen 80;
server_name kk.admin.com;
index index.html index.htm index.php;
root /opt/kk/php/web;
location ~ ^(.+\.php)(.*)${
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /{
proxy_pass http://kkadmin;
}
access_log /usr/local/nginx/logs/admin.kktest_admin_web_access.log;
}
server{
listen 804;
index index.html index.htm index.php;
root /opt/kk/js/admin;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${
expires 1d;
}
location ~ .*\.(js|css)?${
expires 12h;
}
access_log /usr/local/nginx/logs/kktest_admin_js_access.log;
}
server{
listen 805;
index index.html index.htm index.php;
root /opt/kk/js/frontend;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${
expires 1d;
}
location ~ .*\.(js|css)?${
expires 12h;
}
access_log /usr/local/nginx/logs/kktest_web_js_access.log;
}
server服务nginx
upstream bzwebsocket{
server 127.0.0.1:6789;
}