進行反向代理配置
修改組態檔: /user/local/nginx/conf/nginx.conf
server {
listen 80;
server_name www.123.com;
location / {
proxy_pass http://127.0.0.1:8080;
root html;
index index.html index.htm;
}
}
修改hosts檔案
在C:\Windows\System32\drivers\etc\hosts檔案最后一行添加如下內容
127.0.0.1 www.123.com
如果你只是等待,發生的事情只會是你變老了,
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/305929.html
標籤:其他
