nginx 配置golang
作者:会飞的
upstream go { server 127.0.0.1:9090;}server { server_name www.test.com test.com; location /go { proxy_pass_header Server; proxy_set_header Host $http_host; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr;
upstream go {
server 127.0.0.1:9090;
}
server {
server_name www.test.com test.com;
location /go {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://go;
}
}
猜你喜欢
您可能感兴趣的文章:
- js 获取当前url地址
- safasf
- MySQL ALTER TABLE 添加/修改/删除字段
- php获取ip地址
- ajax The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
- jQuery jsonp跨域请求
- nginx lua access_by_lua_file设置变量无变化
- js中的值类型和引用类型的区别
- shell常用脚本变量
- tcpdump 抓包命令
- kubernetes kubect命令总结
- docker run mysql confluence
- docker容器日志归档工具 log-pilot
- SonarQube与Jenkins集成对代码进行质量分析
- MySQL数据库经典错误
- Jmeter压测
- test
- linux 查看端口号
- linux启动go程序两种方法