首页 > 系统相关 >nginx 1.25.1 发布

nginx 1.25.1 发布

时间:2023-06-26 15:31:38浏览次数:59  
标签:index ssl server nginx 发布 clouddebug http2 1.25

nginx 1.25.1 有一个很不错的特性,就是支持了http2 指令,以前这个指令主要是也listen 配置使用的(ssl+http2 场景)
独立指令之后就有了很方便的功能了,比如有些业务希望使用http0.9-1.1 协议,有些需要使用http2,当然目前也是支持了
http3的,可以做到分离,以前版本存在一个问题就是开启了之后协议就都是http2(当然浏览器是可以协商降级的)

参考使用配置

主要是测试

  • docker-compose 文件
version: "3"
services:
  app:
     image: nginx:1.25.1-alpine3.17-perl
     volumes:
       - ./nginx.conf:/etc/nginx/nginx.conf
       - ./ssl:/etc/nginx/ssl
     ports:
       - "80:80"
       - "443:443"
  • nignx 配置
user root;
user root;  
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  text/html;
    root /usr/share/nginx/html;
    gzip  on;
    resolver 114.114.114.114;
    server {
       listen 80;
       charset utf-8;
       server_name  demoapprong.com;
       default_type text/html;
       location / {
          index index.html index.htm;
       }
    }
    server {
        listen 443 ssl;
        server_name  clouddebug.tech;
        http2 on;
        ssl_certificate      /etc/nginx/ssl/clouddebug.tech.pem;
        ssl_certificate_key  /etc/nginx/ssl/clouddebug.tech.key;
        location / {
            index    index.html index.htm;
        }
    }
    server {
        listen 443 ssl;
        server_name  login.clouddebug.tech;
        http2 off;
        ssl_certificate      /etc/nginx/ssl/login.clouddebug.tech.pem;
        ssl_certificate_key  /etc/nginx/ssl/login.clouddebug.tech.key;
        location / {
            index    index.html index.htm;
        }
    }
}
  • 效果

nginx 1.25.1 发布_html

 

说明

实际上官方commit 上也有说明,可以学习,参考以下信息

参考资料

https://nginx.org/en/CHANGES
https://hg.nginx.org/nginx/rev/08ef02ad5c54

标签:index,ssl,server,nginx,发布,clouddebug,http2,1.25
From: https://blog.51cto.com/rongfengliang/6554988

相关文章

  • vue-router之hash与history,以及nginx配置
    本篇讲解前端项目的路由模式(以vue-router为例),以及history模式下的项目部署问题。vue-router的路由模式可以通过指定mode属性值控制,可选值:"hash"、"history"、"abstract",默认:"hash"(浏览器环境),"abstract"(Node.js环境)constrouter=newVueRouter({mode:......
  • Nginx配置max_fails fail_timeout 不起作用 - stub_status - 调试 nginx --with-deb
    0.stub_statusconfigurearguments:--prefix=/usr/local/tengine--with-http_realip_module--with-http_gzip_static_module--with-pcre--with-http_stub_status_module--with-http_ssl_module--add-module=/opt/nginx-goodies-nginx-sticky-module-ng[root@slave1con......
  • Nginx-PHP优化设置 + lnmp调优的关键影响因素 + php-fpm + nginx返回码 + tcp调优 +
    最大文件描述符Linux内核本身有文件描述符最大值的**,你可以根据需要更改:系统最大打开文件描述符数:/proc/sys/fs/file-max临时性设置:echo1000000>/proc/sys/fs/file-max永久设置:修改/etc/sysctl.conf文件,增加fs.file-max=10000002、用户级设置vi/etc/security/limits.confhttp......
  • elk 入门 - 分析nginx日志 + json格式 + 有调试的意识 + elk7.2.0
    1.本次采用的一台主机,将所有的软件安装一台上进行测试工作。2.安装部署:https://blog.51cto.com/hwg1227/22999953.简单调试输出rubydebuginput{file{path=>"/usr/local/log_test/*/*/*.log"start_position=>"beginning"}}output{e......
  • 配置文件 proxy_set_header -发往后端服务器的请求头---- nginx日志设置级别调试技巧
    http{includemime.types;default_typeapplication/octet-stream;sendfileon;#tcp_nopushon;#keepalive_timeout0;keepalive_timeout65;server_tokensoff;log_formatmain'$remote_addr-$remote_user[$time_local]......
  • Nginx 根据请求参数代理到指定网址
    1、参考nginx中将某一个请求的路径重定向到其它网址nginx:[emerg]unknowndirective"if($request_uri"in2、小坑if与($间需要有空格。判断请求路径中,是否包含/adminif($request_uri~'/admin'){return404;}3、配置location/xxxxx/client/register{......
  • MacOs Docker nginx.conf 配置
    `server{listen8089;server_namelocalhost;client_max_body_size120M;#php容器项目地址root/var/www/html/shop;indexindex.phpindex.htmlindex.htm;location/{#try_files$uri$uri//index.php?s=$uri&$args;}......
  • 发布一个Visual Studio 2022 插件,可以自动完成构造函数依赖注入代码
    赖注入(DI)在开发中既是常见的也是必需的技术。它帮助我们优化了代码结构,使得应用更加灵活、易于扩展,同时也降低了各个模块之间的耦合度,更容易进行单元测试,提高了编码效率和质量。不过,手动注入依赖项也可能会成为我们开发过程中的瓶颈。通常情况下,当我们需要注入大量依赖对象时,我......
  • macbook m1 使用 brew 安装 nginx + 多版本 php
    目录macbookm1使用brew安装nginx+多版本php安装多个php版本1.配置php仓库2.安装多版本php3.配置php-pfm的端口4.启动php-pfm服务5.切换php-cli命令行的版本安装nginxmacbookm1使用brew安装nginx+多版本php在FastAdmin开发是,可能会用到多个p......
  • 使用 Debian、Docker 和 Nginx 部署 Web 应用
    前言本文将介绍基于Debian的系统上使用Docker和Nginx进行Web应用部署的过程。着重介绍了Debian、Docker和Nginx的安装和配置。第1步:更新和升级Debian系统通过SSH连接到服务器。更新软件包列表:sudoaptupdate升级已安装的软件包:sudoaptupgrade第2步......