我的服务器跑着不同的应用,今天在做微信相关的程序,所以需要配置二级域名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; }
}
本文介绍如何为微信相关程序配置二级域名wx,并通过Nginx进行代理设置,包括listen指令、server_name指令及location块中proxy_pass等配置项的使用。
我的服务器跑着不同的应用,今天在做微信相关的程序,所以需要配置二级域名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; }
}

被折叠的 条评论
为什么被折叠?