Nginx rewrite if file not found

Nginx rewrite if file not found</h1> Если картинка не найдена в текущем локации – реврайт на запасную location /pictures { root /var/hosting/; autoindex_exact_size off; autoindex off; try_files $uri @pictures2 ; } location /pictures2 { root /var/hosting/; autoindex_exact_size off; autoindex off; } location @pictures2 { rewrite ^/pictures/(.*) https://itc-life.ru/pictures2/$1 break; } Для proxy_pass location /uploads/calls/ { proxy_pass […]

Читать дальше… from Nginx rewrite if file not found

Увеличение лимитов linux и тюнинг ядра для hiload.

Увеличение лимитов linux nano /etc/security/limits.conf * – nofile 999999 * soft nofile 500000 * hard nofile 500000 root soft nofile 500000 root hard nofile 500000 root soft nproc unlimited root hard nproc unlimited Тюнинг sysctl.conf nano /etc/sysctl.conf net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.ip_local_port_range = 10240 65535 net.ipv4.conf.all.accept_redirects = 0 net.ipv4.conf.all.secure_redirects = 0 net.ipv4.conf.all.send_redirects = […]

Читать дальше… from Увеличение лимитов linux и тюнинг ядра для hiload.

Настройка почтового сервера exim4

sudo apt-get -y install exim4 To configure Exim for your environment, execute: sudo dpkg-reconfigure exim4-config Configure everything according to your needs. If you ever need to modify any of your settings, simply re-run the configuration wizard. Mail Server Configuration Type The first configuration window you encounter will ask you to select the “mail server configuration […]

Читать дальше… from Настройка почтового сервера exim4