我的服务器跑着不同的应用,今天在做微信相关的程序,所以需要配置二级域名wx
,配置如下,重启nginx生效。
server {listen 80;server_name wx.caowei.wang;location / { proxy_set_header X-Real-IP $remote_addr;proxy_set_header Host $http_host;proxy_pass http://127.0.0.1:8080; }}
时间:2022-01-09 19:38:15
我的服务器跑着不同的应用,今天在做微信相关的程序,所以需要配置二级域名wx
,配置如下,重启nginx生效。
server {listen 80;server_name wx.caowei.wang;location / { proxy_set_header X-Real-IP $remote_addr;proxy_set_header Host $http_host;proxy_pass http://127.0.0.1:8080; }}