草庐IT

使用nginx提供https端点,实现不修改浏览器地址(不触发重定向)转发网络流量,附生成自签ssl证书最简单的方法(2个命令)

近日笔者需要实现一个网络流量转发的需求。要求很简单:将浏览器的请求转发到一个指定的域名,需要提供一个https端口并且把http端口转发到https端口。由于笔者对nginx的认知有限,因此磕磕绊绊研究了一阵,将结果写出来,以供其他有类似需求的同学参考对照。1.使用docker拉起nginx服务nginx的官方docker在这里。拉起nginx就一个命令:sudodockerrun-d-v/home/linmao/nginx/nginx.conf:/etc/nginx/nginx.conf-v/home/linmao/nginx/cert:/cert/-p8000:80-p4443:443ng

make: *** /lib/modules/3.10.0-957.el7.x86_64/build: No such file or directory.

内核版本是3.10.0-957.el7,出错之后发现:yumlist|grepkernel-develkernel-devel.x86_64            3.10.0-1160.92.1.el7   update并且发现yuminstallkernel-devel-$(uname-r)不行,没有安装包。按照某个博主的方式:yumupdatekernel,升级内核之后,需要重启!!重启之后,uname-r,显示,升级成功,并且和开发包的版本是一致的3.10.0-1160.92.1.el7.x86_64但是,/usr/src/kernels/照旧是空的,没有需要的开发包,再次执行:yum

Issue—C#—ssl相关错误

报错:.net6:{"MessageTemplate":"Anunhandledexceptionhasoccurredwhileexecutingtherequest.""Exception":"System.Net.Http.HttpRequestException:TheSSLconnectioncouldnotbeestablished,seeinnerexception.\r\n--->System.Security.Authentication.AuthenticationException:Authenticationfailedbecausetheremotepartysent

【unable to access ‘https://github.com/用户名/仓库名.git/‘: SSL certificate problem 解决的问题】

记录clone远程仓库失败的问题unabletoaccess‘https://github.com/用户名/仓库名.git/’:SSLcertificateproblem:self翻译过来就是Fisheye/Crucible服务器不能识别git的SSL证书,所以操作停止执行执行下面命令即可:gitconfig--globalhttp.sslVerifyfalse

elasticsearch+kibana集群安装部署并配置ssl连接

三台机器192.168.1.21、22、23主机名分别是es1、es2、es3准备工作:关闭防火墙,关闭SeLinux,将elasticsearch和jdk的压缩包传到机器上,此处jdk-8u333-linux-x64.tar.gz,elasticsearch-7.6.2-linux-x86_64.tar.gz,kibana-7.6.2-linux-x86_64.tar.gz安装Java环境tar-zxvfjdk-8u333-linux-x64.tar.gz-C/usr/local/mvjdk1.8.0_333/jdkrm-rf/usr/bin/javaln-sv/usr/local/jdk/

【已解决】error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/etc/ssl

1、问题描述git黑窗口报错“errorsettingcertificateverifylocations”,意思就是证书位置设置错误。fatal:unabletoaccess'https://github.com/goSilver/daydayup.git/':errorsettingcertificateverifylocations: CAfile:D:/dev/Git/mingw64/ssl/certs/ca-bundle.crt CApath:none2、问题分析git的配置文件里的路径和实际的路径不一致了,故报错证书位置设置错误。3、解决方法重新设置git配置文件路径:(推荐)gi

LaravelS 项目配置ssl 支持https 访问

####laravalS配置ssl请求支持httpsnginx:[emerg]no“ssl_certificate”isdefinedforthe“listen…ssl”directivein/www/server/panel/vhost/nginx/im.17epk.com.conf:14map$http_upgrade$connection_upgrade{defaultupgrade;''close;}upstreamswoole{#通过IP:Port连接server0.0.0.0:5200weight=5max_fails=3fail_timeout=30s;#通过UnixSocket

npm install报错fatal: unable to access ‘https://github.com/nhn/raphael.git/‘: OpenSSL SSL_read 10054

报错信息:npmERR!E:\tools\Gitt\Git\cmd\git.EXEls-remote-h-thttps://github.com/nhn/raphael.gitnpmERR!npmERR!fatal:unabletoaccess'https://github.com/nhn/raphael.git/':OpenSSLSSL_read:Connectionwasreset,errno10054npmERR!npmERR!exitedwitherrorcode:128处理方法1.gitconfig--globalurl."https://".insteadOfgit://2.可能是

【.NET6 + Vue3 + CentOS7.9 + Docker + Docker-Compose + SSL】个人博客前后端运维部署

个人博客前端:https://lujiesheng.cn个人博客后端:https://api.lujiesheng.cn个人博客运维:https://portainer.lujiesheng.cn1.服务器准备我采用的是腾讯云轻量应用服务器(2C4G8M80G),配置如下图:安装镜像选择CentOS7.664bit:2.服务器防火墙设置添加防火墙出入站规则,设置如下图:3.域名解析把已备案的域名解析到服务器,记录如下图:4.SSL证书准备通过腾讯云申请免费证书:把对应的证书下载到本地:5.容器镜像服务准备新建命名空间:新建私有镜像仓库:6.连接登录到服务器我采用的是FinalShell:更新服

解决小程序启动后页面报错:Uncaught (in promise) env: Windows,mp,1.06.2209190; lib: 2.26.2

小程序项目构建成功后启动,报错信息如下,很烦恼,没有具体的报错信息WAServiceMainContext.js?t=wechat&s=1666321259431&v=2.26.2:1Uncaught(inpromise)env:Windows,mp,1.06.2209190;lib:2.26.2 查了微信官方文档后解决了,过程如下:微信开发者中心-链接地址