<pre name="code" class="sql">开发电脑设置DNS为192.168.32.101:
比如http://www.zjj.com/ 客户机指定域名服务器为192.168.32.101
[root@dr-mysql01 named]# cat zjj.com.zone
$TTL 1D
@ IN SOA zjj.com. rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
www IN A 192.168.32.16
You have new mail in /var/spool/mail/root
域名解析指向192.168.32.16 代理服务器:
查看代理服务器配置:
### for Zhang_Jun_Jie ###
acl zjj_1_req hdr_beg(host) -i www.zjj.com
acl url_web_zjj path_beg -i /web
use_backend appserver_8081 if zjj_1_req url_web_zjj
acl zjj_2_req hdr_beg(host) -i www.zjj.com
acl url_business_zjj path_beg -i /business
use_backend appserver_8081 if zjj_2_req url_business_zjj
acl zjj_3_req hdr_beg(host) -i www.zjj.com
acl url_validcode_zjj path_beg -i /validcode
use_backend appserver_8081 if zjj_3_req url_validcode_zjj
acl zjj_4_req hdr_beg(host) -i www.zjj.com
acl url_api_zjj path_beg -i /api
use_backend appserver_8082 if zjj_4_req url_api_zjj
acl zjj_5_req hdr_beg(host) -i www.zjj.com
acl url_pay_zjj path_beg -i /pay
use_backend appserver_8083 if zjj_5_req url_pay_zjj
acl zjj_6_req hdr_beg(host) -i www.zjj.com
acl url_static_zjj path_end .html .gif .png .jpg .css .js
use_backend www.zjj.com if zjj_6_req url_static_zjj
acl zjj_7_req hdr_beg(host) -i www.zjj.com
use_backend www.zjj.com if zjj_7_req
app 服务器:
backend appserver_8082
mode http
balance roundrobin
server apphost01_8082 192.168.32.11:8082 check inter 2000 fall 3
开发人员电脑:
backend www.zjj.com
mode http
balance roundrobin
server zjj_host_80 192.168.33.30:80 check inter 2000 fall 3 weight 20
跳转到客户机192.168.33.30