4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:nginx — newest first
  • Controlling nginx

    Pour un graceful shutdown de nginx, il faut un SIGQUIT
    Kubernetes envoie du SIGTERM alors on peut utiliser un preStop script pour être + cool
    https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers

    On peut aussi utiliser le preStop pour s'assuret que le container nginx sidecar s'arrête bien avant l'autre container en posant un lock dans un shared volume. Le preStop de l'autre container va attendre que le lock soit supprimé pour se couper. Le preStop du nginx va supprimer le lock quand il a bien terminé.

    On crée le lock dans un postStart

    via Meetup k8s bbc speaker

    March 8, 2019 - permalink - http://nginx.org/en/docs/control.html
    k8s nginx poststart prestop sidecar
  • TCP load balancing with Nginx (SSL Pass-thru) - Servers for Hackers
    April 2, 2017 - permalink - https://serversforhackers.com/tcp-load-balancing-with-nginx-ssl-pass-thru
    nginx tcp
  • GitHub - jwilder/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen
    December 13, 2016 - permalink - https://github.com/jwilder/nginx-proxy
    docker nginx proxy
  • Pitfalls and Common Mistakes | NGINX
    July 6, 2016 - permalink - https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
    debug nginx
  • Debugging Nginx Configuration
    July 6, 2016 - permalink - https://easyengine.io/tutorials/nginx/debugging/
    debug nginx
  • Understanding Nginx Server and Location Block Selection Algorithms | DigitalOcean

    Très intéressant l'algo utilisé par nginx pour choisir le bloc server et ensuite le bloc location. Je me demande si il existe des astuces pour debug en cas de problèmes... (comment savoir dans quel(s) bloc(s) passe une request ?)

    June 28, 2016 - permalink - https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms
    configuration logic nginx
  • A Guide to Caching with NGINX - NGINX
    February 23, 2016 - permalink - https://www.nginx.com/blog/nginx-caching-guide/
    cache nginx
  • Serving Static Content | NGINX
    February 2, 2016 - permalink - https://www.nginx.com/resources/admin-guide/serving-static-content/
    nginx static
  • The Benefits of Microcaching with NGINX - NGINX
    February 2, 2016 - permalink - https://www.nginx.com/blog/benefits-of-microcaching-nginx/
    cache nginx
  • Module ngx_http_core_module

    Un truc important :

    During searching for a virtual server by name, if the name matches more than one of the specified variants, (e.g. both a wildcard name and regular expression match), the first matching variant will be chosen, in the following order of priority:

    the exact name
    the longest wildcard name starting with an asterisk, e.g. “*.example.com”
    the longest wildcard name ending with an asterisk, e.g. “mail.*”
    the first matching regular expression (in order of appearance in the configuration file)
    
    January 28, 2016 - permalink - http://nginx.org/en/docs/http/ngx_http_core_module.html#server_name
    conf nginx order
  • Nginx Caching - Servers for Hackers
    January 21, 2016 - permalink - https://serversforhackers.com/nginx-caching/
    cache nginx
  • /ˈTræfɪk/

    Un lb en Go qui peut "surveiller" les backends comme Docker par exemple pour update sa conf

    January 21, 2016 - permalink - https://traefik.github.io/
    docker go haproxy lb loadbalancer nginx
  • How Rails, Nginx and X-Accel-Redirect work together - The Data Asylum

    The need for X-Accel-Redirect (and it’s sibling X-Sendfile) comes from two distinct requirements
    The need to deliver large files.
    The need for those files to not be available to the public.

    December 31, 2015 - permalink - http://thedataasylum.com/articles/how-rails-nginx-x-accel-redirect-work-together.html
    nginx rails senfile
  • Speed up Rails with Nginx’s Reverse Proxy Cache | mattbrictson.com
    December 30, 2015 - permalink - https://mattbrictson.com/nginx-reverse-proxy-cache
    cache nginx rails
  • GoAccess - Screenshots
    November 3, 2015 - permalink - http://goaccess.io/screenshots
    apache audit log logs nginx web
  • NGINX 3rd Party Modules | NGINX
    September 22, 2015 - permalink - https://www.nginx.com/resources/wiki/modules/
    module nginx
  • https://github.com/yzprofile/ngx_http_dyups_module
    September 19, 2015 - permalink - https://github.com/yzprofile/ngx_http_dyups_module
    nginx
  • https://github.com/openresty/lua-upstream-nginx-module
    September 19, 2015 - permalink - https://github.com/openresty/lua-upstream-nginx-module
    nginx
  • Luameter – Key performance metrics for Nginx in real time
    September 17, 2015 - permalink - https://luameter.com/
    nginx
  • Using NGINX Plus and NGINX to Authenticate Users
    July 27, 2015 - permalink - https://www.nginx.com/blog/nginx-plus-authenticate-users/
    auth ldap nginx
  • Nginx with dynamic upstreams - Tenzer.dk
    July 27, 2015 - permalink - http://tenzer.dk/nginx-with-dynamic-upstreams/
    nginx upstream
  • nginx + unicorn + performance tweaks
    May 13, 2015 - permalink - http://vstark.net/2012/10/21/nginx-unicorn-performance-tweaks/
    nginx unicorn
  • Kong - Open-Source API Management Layer
    April 29, 2015 - permalink - http://getkong.org/
    api nginx
  • Debian -- Details of package libapache2-mod-rpaf in sid

    Je me demandais pourquoi mes allow from x.x.x.x ne marchait plus au niveau de on apache... C'est pourtant con, j'ai un haproxy en frontal maintenant ! donc apache voit tout venir de 127.0.0.1 et les allow ne sont plus valides.

    Pour résoudre le probleme on peut installer ce mod qui va prendre l'ip dans les headers ajoutés par haproxy (x-forwarded-for) et la considérer comme l'ip source.

    February 21, 2015 - permalink - https://packages.debian.org/fr/sid/libapache2-mod-rpaf
    apache haproxy nginx rpaf
  • How nginx processes a request
    January 1, 2015 - permalink - http://nginx.org/en/docs/http/request_processing.html
    nginx
  • rate limiting

    rsyslog intègre une limitation soft pour ne pas pourrir les IO en cas de mass logs non voulus

    Dans certains cas les valeurs par défaut sont un peu faible, suffit de les up un peu en surveillant les io disk ;)

    November 19, 2014 - permalink - http://www.rsyslog.com/tag/rate-limiting/
    io nginx
  • Faire suivre les messages Rsyslog vers Logstash - Wooster

    Pas con le coup de bien formater les logs pour que logstash ait moins de boulot de parsing de son côté.

    November 6, 2014 - permalink - https://wooster.checkmy.ws/2014/07/rsyslog-json-logstash/
    logstash nginx
  • Enable Nginx Status Page

    le server-status de nginx : comment interpréter l'output

    Interpretation

    Active connections – Number of all open connections. This doesn’t mean number of users. A single user, for a single pageview can open many concurrent connections to your server.
    Server accepts handled requests – This shows three values.
        First is total accepted connections.
        Second is total handled connections. Usually first 2 values are same.
        Third value is number of and handles requests. This is usually greater than second value.
        Dividing third-value by second-one will give you number of requests per connection handled by Nginx. In above example, 10993/7368, 1.49 requests per connections.
    Reading – nginx reads request header
    Writing – nginx reads request body, processes request, or writes response to a client
    Waiting – keep-alive connections, actually it is active – (reading + writing).This value depends on keepalive-timeout. Do not confuse non-zero waiting value for poor performance. It can be ignored. Although, you can force zero waiting by setting keepalive_timeout 0;
    
    October 6, 2014 - permalink - https://rtcamp.com/tutorials/nginx/status-page/
    nginx server-status status
  • Nginx modules by flavour
    July 18, 2014 - permalink - https://docs.google.com/spreadsheet/ccc?key=0AjuNPnOoex7SdG5fUkhfc3BCSjJQbVVrQTg4UGU2YVE#gid=0
    dotdeb module nginx
  • More Puppet Offloading - Masterzen's Blog

    Une solution pour cacher la demande de catalogue..
    Dans cet article il ne parle pas de cacher les demande de metadata, mais c'est aussi une bonne idée.
    Pour que ce soit viable, la validité du cache ne doit pas être trop longue et il faut pouvoir le vider à la main.

    à tester

    • https://paperairoplane.net/?p=380
    June 23, 2014 - permalink - http://www.masterzen.fr/2010/03/21/more-puppet-offloading/
    nginx puppet
  • Module ngx_http_core_module

    Petite chose à savoir côté conf nginx : chaque header appartenant à la requête est disponible sous la forme d'une variable portant le nom : $http_name

    avec "name" = le nom du header en remplaçant les "-" par des "_" et le tout en minuscule, ouf.

    Exemple : X-Header-De-la-mort devient : $http_x_header_de_la_mort

    Utile pour introduire de la logique conditionnelle sur ces headers :)

    June 19, 2014 - permalink - http://nginx.org/en/docs/http/ngx_http_core_module.html
    header http nginx
  • logstalgia - website access log visualization - Google Project Hosting

    Logstalgia is a website traffic visualization that replays or streams web-server access logs as a pong-like battle between the web server and an never ending torrent of requests.

    May 27, 2014 - permalink - http://code.google.com/p/logstalgia/
    apache log nginx pong
  • SSL Offloading, Encryption and Certificates with NGINX - NGINX

    intro à l'offloading ssl de nginx

    April 30, 2014 - permalink - http://nginx.com/blog/nginx-ssl/
    nginx
  • netcraft-april-2014.png (Image PNG, 1266 × 1028 pixels) - Redimensionnée (83%)

    Apache qui passe en dessous de IIS c'est pour bientôt d'après la tendance :o
    Est-ce que l'opensource recule ? Non surement que beaucoup de monde switch de nginx à apache ?

    April 10, 2014 - permalink - http://nginx.wpengine.com/wp-content/uploads/2014/04/netcraft-april-2014.png
    apache nginx
  • https://github.com/lebinh/ngxtop

    Pour monitorer en temps réel un nginx

    March 24, 2014 - permalink - https://github.com/lebinh/ngxtop
    nginx
  • Why we don't use a CDN: A story about SPDY and SSL

    Bon article sur quelques subtilités ssl

    via Skunnyk

    February 21, 2014 - permalink - https://thethemefoundry.com/blog/why-we-dont-use-a-cdn-spdy-ssl/
    bench http https nginx ssl
  • Optimisations Nginx : bien comprendre sendfile, tcp_nodelay et tcp_nopush | UX, Startups & Cie
    February 7, 2014 - permalink - http://t37.net/optimisations-nginx-bien-comprendre-sendfile-tcp-nodelay-et-tcp-nopush.html
    nginx sys
  • Module ngx_http_upstream_module

    to read

    February 6, 2014 - permalink - http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
    nginx
  • How to speed up Nginx web server with PageSpeed - Linux FAQ

    à lire

    January 30, 2014 - permalink - http://xmodulo.com/2014/01/speed-nginx-web-server-pagespeed.html
    nginx
  • Notes: Tip: keep the Host header via nginx proxy_pass

    Pour garder le header host original :

    proxy_set_header Host $http_host;
    ou
    proxy_set_header Host $host;

    Sinon le header host est re-écrit par nginx avant de balancer la requete aux serveurs derriere.

    January 23, 2014 - permalink - http://www.simplicidade.org/notes/archives/2011/02/nginx_proxy_host_header.html
    nginx
  • Forwarding Visitor’s Real-IP in Nginx Proxy/Fastcgi backend correctly

    L'explication du pourquoi comment de ces deux lignes :

    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    January 23, 2014 - permalink - https://rtcamp.com/tutorials/nginx/forwarding-visitors-real-ip/
    nginx
  • Nginx Configuration Primer
    December 18, 2013 - permalink - http://blog.martinfjordvald.com/2010/07/nginx-primer/
    nginx
  • htaccess to nginx converter
    December 13, 2013 - permalink - http://winginx.com/htaccess
    apache converter htaccess nginx
  • HOWTO install php5-fpm on Debian Squeeze · fak3r | look out honey, cause I'm using technology

    nginx fpm on squeeze with dotdeb

    December 13, 2013 - permalink - https://fak3r.com/2011/09/27/howto-install-php5-fpm-on-debian-squeeze/
    fpm nginx sdn