1.使用nginx做域名映射(反向代理)
将域名解析到指定的rp,在进行域名解析后,在nginx中添加server:
server {
listen 80;
server_name www.baidu.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://127.0.0.1:50002;
}
}```