L78

Syntax: split_clients string $variable { ... }
Default:
Context: http
http {
split_clients "${remote_addr}AAA" $variant {
0.5% .one;
2.0% .two;
* "";
} server {
location / {
index index${variant}.html;
}
}

Nginx split_client More articles on modules

  1. be based on Nginx dyups Module of the site dynamic online and offline, and achieve simple service governance

    brief introduction Today we will mainly discuss , For distributed services , How to smooth up and down the line of the site . Distributed services Under distributed services , We will use nginx Load balancing , When a business site visits a service site , Unified walk nginx, then nginx According to one ...

  2. Nginx Slicing module 、 Breakpoint continuation

    be familiar with CDN Friends of mainstream technology in the industry should be quite clear , although Nginx In recent years, the development is booming , But basically did not directly use its own proxy_cache Module to do caching , There are many reasons , For example, the following : Multiple disks are not supported ...

  3. nginx Event module analysis ( One )

    nginx ngx_events_module Module analysis ngx_events_module Module is one of the core modules , It is the proxy module for all other event modules .nginx At startup only with events Dealing with modules , And by the even ...

  4. mac Next Nginx+lua Module compilation and installation

    Nginx Of nb I don't want to say anything about it ,lua It's also a small scripting language , By standard C Written , It can run on almost all platforms , It's also very powerful , For other features, please do it yourself .nginx_lua_module It's Qingwu, an engineer from Taobao ( Wang Xiao Zhe ) ...

  5. nginx Add modules ( Non overlay installation )

    nginx Add modules ( Non overlay installation ) It's already installed nginx, Now you need to add a module that has not been compiled and installed : Look at the parameters that were included in the original compilation # /usr/local/nginx/sbin/nginx -V ngin ...

  6. Some good ones nginx Third-party module

    Some good ones nginx Third-party module from ;http://macken.iteye.com/blog/1963301  1.Development Kit https://github.com/simpl/ ...

  7. nginx Custom module writing - Real time statistics module -- Reprint

    original text :http://www.vimer.cn/2012/05/nginx%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A8%A1%E5%9D%97%E7%BC%96%E5%86%99- ...

  8. nginx -- handler modular (100%)

    handler Module introduction I believe that after reading the module overview in the previous chapter , All the nginx We have a basic understanding of the module of . Basically, as a third-party developer, three types of modules are most likely to be developed , namely handler,filter and load-ba ...

  9. Nginx Http Module development

    About Nginx Http Module development articles are very few , Only Emiler The article about Http Module article , But in that article , It's not about how to develop event based modules . What's more, the content mentioned in the article is really a little more than enough . therefore , Yes ...

Random recommendation

  1. Dcloud HTML5 Monitoring Bluetooth devices call Native Android implementation

    I've been doing Dcloud , This is a HTML5 Version development , When packing , It can be packed into apk and ipa Running on Android and ios On the machine , But there is very little information in it , Have a problem , After that, I can only study and summarize myself , Now there is a need to ...

  2. [SAP ABAP Development technology summary ] Select screen —— Demonstration of various screen elements

    Statement : Original works , Please indicate that the article is from SAP Abbess technology blog ( Bo / customer / garden www.cnblogs.com):www.cnblogs.com/jiangzhengjun, And indicate the original source of the article in the form of hyperlinks , Otherwise it would be ...

  3. nodejs And async Asynchronous programming

    1. What is asynchronous programming ? Asynchronous programming is due to asynchronous I/O Other factors , When the execution result cannot be synchronized , The coding style for the next operation in the callback function , The common ones are setTimeout function .ajax Requests and so on . Example :  for (v ...

  4. paip.java Thread unlimited wait The solution of the

    paip.java   Thread unlimited wait The solution of the jprofl>threads>thread dump> Look at the thread execution code stack... Estimation is . such as .BlockingQue ...

  5. iOS Static library of development ( Two )—— .a

    I've already introduced iOS The basic concepts and characteristics of static library in , There's no more nonsense here , Go straight to the code Compile environment Xcode5.1 + Mac OS X 10.9.3 New static library project Xcode There are two templates for creating static libraries in , One is to create ...

  6. vue2.0 introduction

    vue2.0 Introduction to the summary of development practice   vue2.0 It is said that it has been out for a long time , The blogger finally took a real sword . The whole project adopts  vue +  vue-router +  vuex ( The legendary vue Family bucket ), Construction Engineering ...

  7. OpenVPN The inexplicable disconnection problem and its solution

    1. problem Have to say , This is a OpenVPN The problem of , The problem is almost every user OpenVPN All of you have met , There are also a lot of people asking questions on the Internet , But no one has been able to come up with a solution , Many posts even said that they gave up using it because of this problem Open ...

  8. python Integers and floating point numbers

    Integers and floating point numbers Python Support four mixed operations directly on integer and floating point numbers , The operation rules are completely consistent with the four mathematical operation rules . Basic operations : 1 + 2 + 3 # ==> 6 4 * 5 - 6 # ==> ...

  9. django celery redis Timing task

    0. Purpose In a development project , There are often some operations that take a long time ( In the production environment, more than nginx Of timeout Time ), Or tasks to be performed at intervals . under these circumstances , Use celery It's a good choice .   cele ...

  10. Spark Programming model ( On )

    Spark Programming model The core concept ( Pay attention to the contrast MR To learn from the concept of ) Spark Application The composition of Spark Application Basic concepts Spark Application Programming model review sc ...