nginx反向代理
来源:互联网 发布:萧然网络问政 编辑:程序博客网 时间:2024/06/11 16:19
nginx反向代理:
1、portal:
domainList:"apsWeb" : "/apsWeb/", //整合nginx及接入层
login.html: var accessUrl = "/apsWeb";
var portalUrl = "/apsWeb";
文件路径修改 <link rel="stylesheet" href="/modules/login/css/style.css">
2、nginx:
nginx.conf:解压缩地址修改
创建需要设置反向代理的文件内容:D:\nginx_mars-1.9.9\conf\vhosts\asp.conf
location / {
root "D:\newsvn\hsxt-portal\hsxt-portal-aps-web\src\main\webapp";
index index.html index.htm;
}
location /apsWeb {
proxy_pass http://192.168.41.33:8080/hsxt-access-web-aps;
location /apsPortal {
proxy_pass http://192.168.41.33:8081/hsxt-portal-aps-web;
3、启动nginx
4、访问地址:http://127.0.0.1:21000/modules/login/tpl/login.html
1、portal:
domainList:"apsWeb" : "/apsWeb/", //整合nginx及接入层
login.html: var accessUrl = "/apsWeb";
var portalUrl = "/apsWeb";
文件路径修改 <link rel="stylesheet" href="/modules/login/css/style.css">
2、nginx:
nginx.conf:解压缩地址修改
创建需要设置反向代理的文件内容:D:\nginx_mars-1.9.9\conf\vhosts\asp.conf
location / {
root "D:\newsvn\hsxt-portal\hsxt-portal-aps-web\src\main\webapp";
index index.html index.htm;
}
location /apsWeb {
proxy_pass http://192.168.41.33:8080/hsxt-access-web-aps;
location /apsPortal {
proxy_pass http://192.168.41.33:8081/hsxt-portal-aps-web;
3、启动nginx
4、访问地址:http://127.0.0.1:21000/modules/login/tpl/login.html
0 0
- Nginx反向代理Nginx
- Nginx反向代理Nginx
- nginx 反向代理
- nginx 反向代理
- Nginx 反向代理https
- Nginx 反向代理设置
- nginx反向代理
- nginx 反向代理上网
- Nginx 反向代理设置
- NGINX实现反向代理
- nginx TCP 反向代理
- nginx 反向代理
- nginx反向代理配置
- nginx反向代理原理
- nginx反向代理配置
- Nginx反向代理设置
- Nginx 反向代理
- nginx 反向代理设置
- SVN绝配,版本库先考你服务器端版本与客户端的版本如何匹配!巧合吗
- instance method '' not found (return type defaults to 'id')
- Jsonkit报错修改
- Tomcat下搭建同IP不同端口的多站点
- oracle 数据库搭建库详解
- nginx反向代理
- android带头像的登录界面键盘遮挡问题解决新思路
- Dynamic Module Import
- POI操作Excel常用方法总结
- 顺序队列的C语言实现
- access数据库的连接
- 各类快捷键整理(Windows、Sublime、Firebug)
- 当我们在使用CSS的时候ID与Class有何不同?
- 5段SQL可以测试出你对SQL性能优化知识了解多少