Добрый день уважаемые подписчики. Столкнулся с не совсем понятно проблемой в связке Nginx и CentOs.
Имеем CentOS release 6.5 (Final) и nginx version: nginx/1.6.0. Nginx брался из репазитория nginx.org Пишем с нуля nginx.conf: http { server { } } Получаем ginx: [emerg] "http" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:5 nginx: configuration file /etc/nginx/nginx.conf test failed Тоже самое для директив - user, events. ginx: [emerg] "events" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:5 Если писать конструкцию: server { location / { root /data/www; } location /images/ { root /data; } } - все проходит. Подскажите - что не так! Спасибо! -- Ваш Сергей
_______________________________________________ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru