1 ytest 192.168.8.232 新增域名解析
愛家會: ihome.yoohouse.com
SMS API: api.yoohouse.com
Base: base.yoohouse.com
均对应 222.73.115.107
2 hawk01-002 增加对三个域名的解析
动态的 因此新增三段 20080配置
server {
listen 80;
server_name estate.yoohouse.com admin.yoohouse.com yoohouse.com ;
变更为
server {
listen 80;
server_name estate.yoohouse.com admin.yoohouse.com yoohouse.com ihome.yoohouse.com api.yoohouse.com base.yoohouse.com;
新增内容
server {
listen 20080;
server_name ihome.yoohouse.com ;
root /home/public/ihome ;
index index.php ;
access_log /logs/$host.log new;
add_header servertag hawk01-002-srv;
location ~ .*\.(php|php5|phtml?)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_connect_timeout 500;
fastcgi_send_timeout 500;
fastcgi_read_timeout 500;
fastcgi_buffer_size 32k;
fastcgi_buffers 128 32k;
}
}
server {
listen 20080;
server_name api.yoohouse.com ;
root /home/public/api ;
index index.php ;
access_log /logs/$host.log new;
add_header servertag hawk01-002-srv;
location ~ .*\.(php|php5|phtml?)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_connect_timeout 500;
fastcgi_send_timeout 500;
fastcgi_read_timeout 500;
fastcgi_buffer_size 32k;
fastcgi_buffers 128 32k;
}
}
server {
listen 20080;
server_name base.yoohouse.com ;
root /home/public/base;
index index.php ;
access_log /logs/$host.log new;
add_header servertag hawk01-002-srv;
location ~ .*\.(php|php5|phtml?)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_connect_timeout 500;
fastcgi_send_timeout 500;
fastcgi_read_timeout 500;
fastcgi_buffer_size 32k;
fastcgi_buffers 128 32k;
}
}
阅读(518) | 评论(0) | 转发(0) |