nginx的配置文件-反向代理

server {
        listen       80;
        server_name  IP地址;
        location / {
            proxy_pass 服務的ip和端口(https://www.baidu.com);
            index  index.html index.htm;
        }
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章