Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

随笔分类 -  nginx

摘要:1.请求转发 比如说我要将127.0.0.1/topics上的所有请求转发到xxx:xxx/上 修改 sudo vim /etc/nginx/nginx.conf server { listen 80; server_name 127.0.0.1; location /topics { #root 阅读全文
posted @ 2019-10-16 15:43 tonglin0325 阅读(539) 评论(0) 推荐(0) 编辑
摘要:1.配置filebeat_nginx.yml filebeat.modules: - module: nginx access: enabled: true var.paths: ["/var/log/nginx/access.log*"] error: enabled: true var.path 阅读全文
posted @ 2019-10-14 11:15 tonglin0325 阅读(2623) 评论(0) 推荐(0) 编辑
摘要:1.安装nginx,注意不要安装nginx-full sudo apt-get install nginx sudo apt-get install nginx-common sudo apt-get install nginx-extras 确认版本 apt list --installed | 阅读全文
posted @ 2019-10-13 22:58 tonglin0325 阅读(2287) 评论(0) 推荐(0) 编辑
摘要:1.修改配置,在http{}中添加 log_format access_json '{"@timestamp":"time_iso8601",' '"host":"server_addr",' '"clientip":"remote_addr",' '"size":body_bytes_se 阅读全文
posted @ 2019-10-12 18:44 tonglin0325 阅读(3447) 评论(0) 推荐(0) 编辑
摘要:1.编辑配置文件 在http {}中添加如下 2.重启nginx 3.访问,成功 4.访问日志 阅读全文
posted @ 2019-10-12 18:32 tonglin0325 阅读(1590) 评论(0) 推荐(0) 编辑
摘要:1.安装 sudo apt-get install nginx 2.启动 systemctl start nginx.service 如果和apache2的80端口冲突了,修改一下apache2的port sudo vim /etc/apache2/ports.conf 冲突的话,日志/var/lo 阅读全文
posted @ 2019-10-12 16:48 tonglin0325 阅读(147) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示