`

分享一个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.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics