本地host,
路径: c/windows/system32/drivers/etc/host
ip 域名
127.0.0.1 image.jt.com
127.0.0.1 manage.jt.com
127.0.0.1 web.jt.com
配置文件
根目录/coof/nginx.conf
http{
server {
# 端口
listten:80;
# 域名
server_name www.baidu.com;
#文件位置
localhost / {
#根目录
root: xxx;
#默认首页
index: index.html,index.htm,index.php;
}
}
#集群
upstream jq {
#哈希绑定
#ip_hash;
server localhost:8080;
server localhost:8090;
}
server {
listten 80;
server_name 域名;
location / {
#映射远程链接
proxy_path http://jq;
}
}
}