How To Update Nginx and Add Secure_link Module ?

Обсуждение установки и настройки поддерживаемых вебсерверов, а также работы с ними.
Ответить
vvtubeadmin
Сообщения: 29
Зарегистрирован: Пн фев 08, 2021 11:31 am

How To Update Nginx and Add Secure_link Module ?

Сообщение vvtubeadmin » Ср май 26, 2021 5:35 am

hi team , i having issues with Nginx , it consuming most on my RAM , and make my websites slow down ?i think i have to update it to latest version , and other thing is that i need to install ngx_extra module and http_secure_link module on it ? is there anyone who can help me here , please

Аватара пользователя
sbury
Сообщения: 1344
Зарегистрирован: Вт фев 06, 2018 7:51 am

Re: How To Update Nginx and Add Secure_link Module ?

Сообщение sbury » Ср май 26, 2021 8:16 am

The nginx update will be coming soon and will be the first for CentOS 8. Now, do not set the keepalive variable to more than 4.

vvtubeadmin
Сообщения: 29
Зарегистрирован: Пн фев 08, 2021 11:31 am

Re: How To Update Nginx and Add Secure_link Module ?

Сообщение vvtubeadmin » Ср май 26, 2021 11:49 am

ok i will wait , so that this moment , can you help me to optimize Nginx performance in mean time

Аватара пользователя
sbury
Сообщения: 1344
Зарегистрирован: Вт фев 06, 2018 7:51 am

Re: How To Update Nginx and Add Secure_link Module ?

Сообщение sbury » Вс май 30, 2021 1:54 pm

new nginx 1.20.1 is available for CentOS 8.
installation:

Код: Выделить всё

yum clean all
then reinstall the web sheaf in the panel

new modules available by default:
- ngx_http_secure_link_module

new modules optional:
- nginx-ngx-http-combined-upstreams

how to install optional modules:

Код: Выделить всё

yum install nginx-ngx-http-combined-upstreams
Add its loading manually to /etc/nginx/nginx.conf by analogy with other modules.
After, restart the service:

Код: Выделить всё

systemctl restart nginx
The new module supports view constructs, for example, as shown below:

Код: Выделить всё

upstream backend {
    server s2:<PORT>;
}

upstream clud {
    server s1;
}

vvtubeadmin
Сообщения: 29
Зарегистрирован: Пн фев 08, 2021 11:31 am

Re: How To Update Nginx and Add Secure_link Module ?

Сообщение vvtubeadmin » Ср июн 02, 2021 8:49 pm

Thank you so much for updating me , SO NOW MAY I KNOW HOW MANY keepalive parameter i can set now ? CAN I USE MORE THEN 4 NOW ? DO WE GET apache 2.4.48 ALSO ?

Ответить