Ніколи ще не доводилось мені таке бачити, коли в x-forwarded-for було декілька IP які розділені між собою комою. Відразу зрозумів що питання у каскадному проксі, які додають кожен свою адресу. Рішення не
Категорія: nginx
![upstream timed out (110: Connection timed out) while reading response header from upstream](https://demi4.com/wp-content/uploads/2017/03/111.png)
upstream timed out (110: Connection timed out)upstream timed out (110: Connection timed out)
upstream timed out (110: Connection timed out) – можно получить такое сообщение с ошибкой 500 в случае долгого выполнения скрипта. В таком случае nginx передал запрос на upstream (apache, php)
![Встроенные переменные nginx](https://demi4.com/wp-content/uploads/2017/01/Screenshot-01172017-020318-PM-e1484654644912.png)
Встроенные переменные nginxВстроенные переменные nginx
Заметка про встроенные переменные nginx
![nginx proxy_pass change url](https://demi4.com/wp-content/uploads/2016/10/Screenshot-10302016-094720-PM-e1477856837785.png)
nginx proxy_pass change urlnginx proxy_pass change url
Для проксирования запросов с участием динамических ссылок – необходимо делать реврайт до проксирования (в location).
![because parent directory has insecure permissions](https://demi4.com/wp-content/uploads/2016/10/Screenshot-10312016-082148-AM-e1477894934448.png)
error: skipping “/var/log/nginx/access.log” because parent directory has insecure permissionserror: skipping “/var/log/nginx/access.log” because parent directory has insecure permissions
Настраиваю ротацию для nginx который работает в docker контейнере, сходу словил ошибку “error: skipping “/var/log/nginx/access.log” because parent directory has insecure permissions (It’s world writable or writable by group which is
![nginx proxy_pass $variable](https://demi4.com/wp-content/uploads/2016/10/Screenshot-10272016-093814-AM-e1477550358667.png)
nginx proxy_pass $variablenginx proxy_pass $variable
Век живи – век учись. Я по натуре консервативный человек, но приходится менять и подстраиваться, а иногда делать не так как считаешь нужным, а так – как говорят другие. Настраиваю
![open("/dev/null") failed (24: Too many open files)](https://demi4.com/wp-content/uploads/2016/08/Snimok-e`krana_2016-08-30_12-53-33-e1472550845729.png)
open(“/dev/null”) failed (24: Too many open files)open(“/dev/null”) failed (24: Too many open files)
open(“/dev/null”) failed (24: Too many open files Я уж было подумал что словил джек-пот, так как вараинті увеличения не помогали, а потом пришло озорение и деревянное решение
![(110: Connection timed out) while reading response header from upstream](https://demi4.com/wp-content/uploads/2016/03/Snimok-e`krana-09.03.2016-161454-e1457532942332.png)
(110: Connection timed out) while reading response header from upstream(110: Connection timed out) while reading response header from upstream
Сообщение “(110: Connection timed out) while reading response header from upstream” и вместе с ним ошибку
![upstream sent too big header while reading response header from upstream](https://demi4.com/wp-content/uploads/2016/02/733947e864093ba61d046a4890e69987-e1455553549639.jpg)
upstream sent too big header while reading response header from upstreamupstream sent too big header while reading response header from upstream
Иногда ловлю такую ошибка, вроде как все работает, работает, а тут раз и 503 ошибка в nginx и в логах “upstream sent too big header while reading response header from
![nginx ограничение скорости](https://demi4.com/wp-content/uploads/2016/01/Znimok-ekrana-z-2016-01-15-224949-e1452891095121.png)
nginx ограничение скоростиnginx ограничение скорости
Сегодня задали вопрос “как ограничить скорость на один IP в nginx” ? Вопрос избитый и куча раз уже обговорен, куча решений. Основная проблема в том – что известный модуль ngx_http_limit_conn_module