1、代理模块 ngx_http_proxy_module 2、代理配置 代理Syntax: proxy_pass URL; #代理的后端服务器URLDefault: —Context: location, if in location, limit_except 头信息Syntax: proxy_s ...
分类:
其他好文 时间:
2020-03-16 17:45:21
阅读次数:
60
nginx会话保持主要有以下几种实现方式。 1、ip_hash ip_hash使用源地址哈希算法,将同一客户端的请求总是发往同一个后端服务器,除非该服务器不可用。 ip_hash语法: upstream backend { ip_hash; server backend1.example.com; ...
分类:
其他好文 时间:
2020-03-16 17:41:14
阅读次数:
66
location / { root C:\skyland\RS\Web\RS-Server\dist; index login.html; } location ~ ^/mediaUrl { proxy_pass http://192.168.19.202:9003; } ...
分类:
其他好文 时间:
2020-03-16 14:29:43
阅读次数:
46
场景一 打包vue 命令: npn run build 项目目录下dist文件夹 nginx 部署 找到nginx conf目录下nginx.conf文件 location /{ root 打包后dist文件所在目录 index index.html } 由于项目请求采用前后分离 那么采用代理形式 ...
分类:
其他好文 时间:
2020-03-15 22:07:14
阅读次数:
182
原文章:https://wangdoc.com/javascript/index.html `` 元素 Node Element HTMLElement HTMLAnchorElement HTMLHyperlinkElementUtils`接口。 属性 URL 相关属性 Location`对象的实 ...
分类:
编程语言 时间:
2020-03-15 20:48:19
阅读次数:
111
报错信息: java.lang.IllegalStateException: Failed to load property source from location ‘classpath:/application.yml 解决方法: File -> Settings -> File Encodin ...
分类:
其他好文 时间:
2020-03-15 13:37:18
阅读次数:
100
# Flanneld configuration options # etcd url location. Point this to the server where etcd runs FLANNEL_ETCD_ENDPOINTS="http://127.0.0.1:2379" # etcd c ...
分类:
其他好文 时间:
2020-03-15 11:49:25
阅读次数:
49
TP项目部署到Linux服务器,今天又碰到了HTTP 500 Internal server error 又是改runtime 777权限 发现并不好使。 于是又找啊找啊, 发现.htaccess 文件又被我忽略了, 果然打开, location / { if (!-e $request_filen... ...
分类:
其他好文 时间:
2020-03-14 21:37:12
阅读次数:
58
net iis多个网站 通过Nginx转发代理出去 正常都ok:见 upstream wx.xxxxx.org { server 127.0.0.1:8081; } server { listen 80; server_name wx.xxxxx.org; location /{ proxy_pas ...
分类:
其他好文 时间:
2020-03-14 13:08:16
阅读次数:
81
1. params 传值:该方式传递参数只能通过字符串的方式传递,如果要传递一个对象,需要先将这个对象转化成字符串(JSON.stringify(obj)),接收参数的时候要用this.props.params.xxx,接收参数的时候也可以转成对象使用JSON.parse(string) route ...
分类:
其他好文 时间:
2020-03-14 12:38:41
阅读次数:
104