nginx
袁保康
.
展开
-
ubuntu 18.04 nginx日志中记录请求体和响应体
ubuntu 18.04 nginx日志中记录请求体和响应体安装lua模块sudo apt-get install nginx-plus-module-lua设置一个全局格式# /etc/nginx/nginx.conflog_format json_combined escape=json '{' '"t":"$time_local",' '"remote_addr":"$remote_addr",' # '"remote_user":"$remote_user",'原创 2021-06-13 15:57:57 · 970 阅读 · 0 评论 -
Ubuntu 16.04 上获取Let‘s Encrypt免费证书
Ubuntu 16.04 上获取Let’s Encrypt免费证书云服务商:阿里云 服务器:针对Nginx服务器; 假设域名:example.com www.example.com 假设IP:137.137.137.137域名指向IP地址这时,ping这个域名就会显示IP地址,说明指向成功。安装Nginx服务器sudo apt-get install nginx...原创 2018-06-02 12:33:11 · 4382 阅读 · 0 评论 -
Nginx实现版本控制
尝试按照https://blog.csdn.net/liuxiao723846/article/details/54925328这里的方法进行无感知版本升级,如下:location / { root html; index index.html index.htm index.php; proxy_redirect off; proxy_set_header X-Forwarded-For $proxy_add_x_原创 2020-11-30 16:12:34 · 638 阅读 · 0 评论 -
letsencrypt遇到Validations for new domains are disabled in the V1 API
letsencrypt遇到Validations for new domains are disabled in the V1 API$ sudo letsencrypt certonly --webroot -w /var/www/html -d example.comSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator webroot, Installer NoneStart原创 2020-11-22 11:58:22 · 283 阅读 · 0 评论 -
Nginx系列文章目录
从去年接触nginx,在2019.06.02写出了第一篇nginx文章,到今天整好一年,这一年中陆续写出了好几个了篇,这里整理成一个单独的目录,方便索引。1. Ubuntu 16.04安装nginx主要介绍了如何安装nginx。2. Ubuntu 16.04 上获取Let’s Encrypt免费证书一般安装之后就要立即配置https证书了,需要参考这个文章。3. Ubuntu 16.04简易安装Nginx-rtmp-module这个是一个需要使用rtmp时如何安装模块。4. Ubuntu 18原创 2020-06-02 23:46:00 · 231 阅读 · 1 评论 -
Ubuntu 18.04简易安装libnginx-mod-http-lua日志模块
网上很多文章写得需要编译源码的方式安装,我很不认可,看书和写书是两个概念,我一定找到的办法如何看书就好了。找不到就自己写书是不可取的。毕竟你还要花很多精力在别的事情上呢。以下是我整理的安装方法,采用apt-get的方法。sudo apt-get install libnginx-mod-http-lua全局修改#/etc/nginx/nginx.conflog_format json_combined escape=json '{' '"t":"$time_local",'原创 2020-06-02 23:35:06 · 809 阅读 · 0 评论 -
Ubuntu 16.04安装nginx
Ubuntu 16.04安装nginx安装安装标准版本sudo apt-get install nginx最新sudo apt-get install software-properties-common python-software-propertiessudo add-apt-repository ppa:nginx/stablesudo apt-get updatesud...原创 2020-05-01 12:29:32 · 266 阅读 · 0 评论