nginx 反向代理

https://www.yuque.com/lgni6q/wdg34y/lzbbwr
先看我的域名解析 必须阿里云先 配置域名解析 在配置ip时指定到代理ip (nginx的)

原来的网站 类似于这个 http://115.29.206.208:82/ 加端口号可以直接访问 可以访问放一边

来到nginx

server
{
    listen 80;
  
    server_name ichaoyue.com.cn  www.ichaoyue.com.cn;


    index app.php index.html index.php;


    #error_page   404   /404.html;



    location / {
    
        #反向代理
        proxy_pass http://115.29.206.208:82;  
  
        }





    access_log  /home/wwwlogs/eduapp.log;
}

nginx 反向代理