Answer the question
In order to leave comments, you need to log in
Nginx config that worked on Ubuntu doesn't work on CentOS, why?
The working production config worked well on Ubuntu Server, I needed to use it on another machine with CentOS 6 on board. While trying to debug, I found that the nginx -T command does not work to dump all configs, instead, it just displays an error.
Nginx version: nginx/1.16.0
One of the errors in the working config:
nginx: [emerg] the size 52428800 of shared memory zone "SSL" conflicts with already declared size 10485760 in /home/admin/conf/web/site.ru.nginx.ssl.conf:122
nginx: configuration file /etc/nginx/nginx.conf test failed
Answer the question
In order to leave comments, you need to log in
Пропустил переменную в конфиге, криво перёнес в новый ибо сильно хотелось спать :c
Вопрос можно закрывать.
НО всё равно, мне кажеться что в этой ОСи у Nginx какой-то строгий режим включен. Например, если переменной не существует, на старой системе всё отрабатывало на ура, на новой уже ошибка.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question