
nginx
袁保康
.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ubuntu 18.04 nginx日志中记录请求体和响应体
ubuntu 18.04 nginx日志中记录请求体和响应体 安装lua模块 sudo apt-get install nginx-plus-module-lua 设置一个全局格式 # /etc/nginx/nginx.conf log_format json_combined escape=json '{' '"t":"$time_local",' '"remote_addr":"$remote_addr",' # '"remote_user":"$remote_user",'原创 2021-06-13 15:57:57 · 1099 阅读 · 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 · 4499 阅读 · 0 评论 -
Nginx实现版本控制
尝试按照https://blog.youkuaiyun.com/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 · 841 阅读 · 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.com Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator webroot, Installer None Start原创 2020-11-22 11:58:22 · 355 阅读 · 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 · 262 阅读 · 1 评论 -
Ubuntu 18.04简易安装libnginx-mod-http-lua日志模块
网上很多文章写得需要编译源码的方式安装,我很不认可,看书和写书是两个概念,我一定找到的办法如何看书就好了。找不到就自己写书是不可取的。毕竟你还要花很多精力在别的事情上呢。以下是我整理的安装方法,采用apt-get的方法。 sudo apt-get install libnginx-mod-http-lua 全局修改 #/etc/nginx/nginx.conf log_format json_combined escape=json '{' '"t":"$time_local",'原创 2020-06-02 23:35:06 · 939 阅读 · 0 评论 -
Ubuntu 16.04安装nginx
Ubuntu 16.04安装nginx 安装 安装标准版本 sudo apt-get install nginx 最新 sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:nginx/stable sudo apt-get update sud...原创 2020-05-01 12:29:32 · 310 阅读 · 0 评论