`

分享一个Nginx镜像

 
阅读更多
公网地址 
registry.cn-hangzhou.aliyuncs.com/syl/nginx-ajp

经典内网 
registry-internal.cn-hangzhou.aliyuncs.com/syl/nginx-ajp


专有网络 
registry-vpc.cn-hangzhou.aliyuncs.com/syl/nginx-ajp
 




  • This Image is based on nginx-1.10.3 and compiling with nginx_ajp_moudle which connect nginx by ajp protocol.
  • exposing the port $ docker run --name some-nginx -d -p 80:80 some-content-nginx
  • customer config $docker run --name customer-nginx -d -v /configdir/yourconfig:/usr/local/nginx/conf.d syl/nginx-ajp:1.1
  • config example:
  • server { listen 80;
  • #listen 443 ssl; server_name your_domain_name; #ssl_certificate /usr/local/nginx/conf.d/server.crt; #ssl_certificate_key /usr/local/nginx/conf.d/server.key; #ssl_client_certificate /usr/local/nginx/conf.d/ca.crt; #ssl_verify_client on; #charset koi8-r; #error_page 404 /404.html;
  • redirect server error pages to the static page /50x.html
  • #error_log /var/log/nginx/debug.log debug; #index index.html index.htm; #root /home/lg/www/;
  • #tomcat_ajp location / { ajp_pass tomcat_ip:ajp_port; } }
  • Directives
  • ajp_buffers
  • syntax: ajp_buffers the_number is_size;
  • default: ajp_buffers 8 4k/8k;
  • context: http, server, location
  • This directive specifies the number and the size of buffers, into which will be read the response, obtained from the AJP server. By default, the size of one buffer is equal to the size of a page. Depending on platform this is either 4K, 8K or 16K.
  • ajp_buffer_size
  • syntax: ajp_buffer_size the_size;
  • default: ajp_buffer_size 4k/8k;
  • context: http, server, location
  • This directive sets the buffer size, into which will be read the first part of the response, obtained from the AJP server.
  • In this part of response the small response-header is located, as a rule.
  • By default, the buffersize is equal to the size of one buffer in directive ajp_buffers; however, it is possible to set it to less.
分享到:
评论

相关推荐

    nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源

    nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源nginx镜像资源

    nginx的arm架构镜像tar包,版本是1.27

    nginx的1.27版本arm架构的镜像tar文件 使用步骤(确保本地环境已经安装docker) 1、将tar包下载到本地 2、打开终端 3、进入到上述tar包的下载路径 4、运行docker load nginx-arm.tar

    nginx.tar.zip

    总之,Nginx是一个强大且灵活的Web服务器,通过解压提供的“nginx-1.8.0.tar.gz”文件并在Linux系统上按照上述步骤操作,你可以成功部署并配置自己的Nginx服务器,为你的网站或应用提供高效、稳定的运行环境。

    nginx-1.22.1-1.sles12.ngx.x86-64.rpm文件(分享给需要的同学)

    nginx-1.22.1-1.sles12.ngx.x86_64.rpm文件 nginx-1.22.1-1.sles12.ngx.x86_64.rpm文件 nginx-1.22.1-1.sles12.ngx.x86_64.rpm文件 nginx-1.22.1-1.sles12.ngx.x86_64.rpm文件 nginx-1.22.1-1.sles12.ngx.x86_64.rpm...

    docker的Nginx创建和运行分享

    通过从 Docker Hub 拉取官方 Nginx 镜像,并运行容器,将本地端口 8080 映射到容器的端口 80,实现快速搭建一个 Nginx Web 服务器。该过程包括拉取镜像、启动容器、访问服务,以及停止和删除容器等步骤,帮助用户...

    nginx+中文文档

    1. **虚拟主机**:通过设置多个`server`块,可以在一个Nginx实例上托管多个网站。 2. **错误页定制**:通过配置error_page指令,可以自定义错误页面,提升用户体验。 3. **Gzip 压缩**:开启Gzip压缩可以减小传输...

    使用dockerfile构建nginx镜像的方法示例

    主要介绍了使用dockerfile构建nginx镜像的方法示例,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    利用docker搭建php7和nginx运行环境全过程(官方镜像)

    本文分享的是利用docker搭建php7和nginx运行环境的全过程,分享出来供大家参考学习,下面来看看详细的介绍: 环境介绍 根目录: /docker 网站根目录:/docker/www nginx相关目录:/docker/nginx/conf.d 准备工作 1...

    Fastdfs单节点安装包集合(Fastdfs+libfastcommon+fastdfs-nginx-module+nginx)

    总之,Fastdfs是一个高效、可靠的分布式文件系统,通过与Nginx的集成,能为Web应用提供强大的文件存储和访问能力。在互联网应用中,Fastdfs是一个值得考虑的选择,尤其对于需要处理大量文件存储和高并发访问的场景。

    Docker从零构建php-nginx-alpine镜像的方法

    主要介绍了Docker从零构建php-nginx-alpine镜像的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    nginx&docker部署使用手册分享

    linux下nginx快速安装; linux下docker快速安装; docker镜像安装、使用、容器修改、容器传输、推送仓库、数据挂载等;

    docker镜像构建,中间件mysql、lighttpd、Nginx、squid配置和启动、dubbo服务部署

    学习心得,分享出来供大家学习。docker镜像构建,中间件mysql、lighttpd、Nginx、squid配置和启动、dubbo服务部署

    基于nginx包含rtmp,http-flv模块,支持rtmp推理,http-flv,hls,rtmp拉流,可进行直播点播

    RTMP拉流是指从一个RTMP服务器拉取流数据并推送到另一个服务器或客户端的过程。这种功能对于实现内容的镜像、备份或者多服务器分发非常有用。Nginx-RTMP模块支持RTMP源的拉取,可以在多个Nginx服务器之间实现内容的...

    Docker中运行nginx并挂载本地目录到镜像中的方法

    主要介绍了Docker中运行nginx并挂载本地目录到镜像中的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    使用lnmp一键安装包搭建的docker镜像

    该txt文本文件中有docker镜像百度网盘下载地址与分享码,以及PHP交流群QQ 。 环境组件是 CentOS7+nginx+php7.4+MySQL5.7 ,需要的小伙伴欢迎下载使用! 遇到任何问题,可以通过 QQ 群进行技术交流。

    centos7封装自定义镜像且包含初始化脚本和一些常用软件合集

    在IT行业中,操作系统镜像是一个重要的组成部分,尤其是对于服务器运维和开发环境的搭建。CentOS 7是一款基于Linux的开源操作系统,因其稳定性、安全性以及强大的社区支持而广受青睐。当我们需要快速部署相同配置的...

    Docker容器配置Nginx实例分享

    容器和虚拟机,经常是被拿出来对比的两款产品,实际上两者有着根本的差别,虚拟机是完全模拟了一台真实计算机,在上面运行的系统可能或者不可能知道自己运行在虚拟化环境下,并且虚拟机承载了将用户指令转换为特权...

    JAVA技术学习答疑分享

    * SpringDataRedis:SpringDataRedis是分布式缓存中的一个重要组成部分,涉及到缓存数据同步、Nginx本地缓存等多个方面。 * 多级缓存:多级缓存是分布式缓存中的一个重要组成部分,涉及到缓存技术、缓存穿透、雪崩等...

    docker 手动构建新镜像的方法

    本文介绍了docker 手动构建新镜像的方法,分享给大家,具体如下: 查看本地现有镜像: [root@docker ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest c59f17fe53b0 4 days ago 108MB ubuntu ...

    Ubuntu环境下Scratch3.0自建局域网环境.docx

    在`/usr/local/nginx/conf/`目录下创建一个新的配置文件`ihasy.conf`,使用`vim`或`nano`编辑器,输入配置内容。一般情况下,你需要定义一个虚拟主机来指向你的Scratch应用的静态文件目录,例如`/usr/local/nginx/...

Global site tag (gtag.js) - Google Analytics