当前公司nginx,每个server下都得配置相同的重复的转发路径,如下:维护起来很麻烦。如果有个文件单独管理该多好,于是找了很多资料,确实可以实现这个功能。下面就把配置分享出来供大家参考。首先创建一个文件test,文件名随便。我写了2个转发,/a/b写好之后,去server下增加一行:include/data/nginx/conf.d/test;如下图所示:配好之后,重启nginx。访问url,
分类:
其他好文 时间:
2020-12-11 12:27:58
阅读次数:
5
Location对象 Location对象表示其链接到的对象的位置URL,所做的修改反映在与之相关的对象上。Document和Window对象都有这样一个链接到Location,分别通过document.location和window.location访问。 属性 location.href: 包含 ...
分类:
其他好文 时间:
2020-12-10 11:12:17
阅读次数:
6
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 ...
分类:
移动开发 时间:
2020-12-10 11:10:22
阅读次数:
9
.Net Standard .NET Standard只是标准,不是实现 验证: 1 建. NET Standard类库项目,确认版本是:2.0,建一个类方法中打印typeof (FileStream). Assembly. Location。 2 分别建.NET Framework和.NET Co ...
分类:
Web程序 时间:
2020-12-10 10:51:59
阅读次数:
6
从git克隆的项目导入Eclipse时报错java.lang.ClassNotFoundException: org.springframework.web.filter.CharacterEncodingFilter 报错原因是因为项目的发布路径Deployment Assembly缺少maven ...
分类:
编程语言 时间:
2020-12-08 13:03:55
阅读次数:
17
1.获取当前页面的url方法:current_url 实例:driver.current_url 2.获取元素坐标方法:location解释:首先查找到你要获取元素的,然后调用location方法实例:driver.find_element_by_xpath("xpath").location 3. ...
分类:
其他好文 时间:
2020-12-03 12:10:18
阅读次数:
7
在用spring配置文件applicationContext.xml中引入src下的properties文件 <context:property-placeholder location="classpath:jdbc.properties"/> <!-- DriveManagerDataSourc ...
分类:
数据库 时间:
2020-12-03 11:37:52
阅读次数:
11
/** * 获取 url 里面的参数 * @param {string} url * @returns {Object} */ export function getQueryObject(url) { url = url == null ? window.location.href : url c ...
分类:
Web程序 时间:
2020-12-02 12:16:31
阅读次数:
13
//加载插件 private void LoadPlugins() { string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "addons"); //搜索该目录下的所有 ...
首先把服务端和客户端的聊天界面窗口搭建完成 效果可以看下图: 主要包括:窗体、滚动条、面板、按钮、文本框和文本域 这部分比较简单,直接上代码: 1.服务端代码 package Chat; import javax.swing.*; import java.awt.*; //如果一个类需要有界面的显示 ...
分类:
编程语言 时间:
2020-11-27 11:31:04
阅读次数:
11