January 28, 2014 05:05PM
Не получается запустить nginx на продуктиве.

Главное сначала тестировал на другом серваке - все идеально сразу заработало, а на продуктиве при попытке restart пишет

Restarting nginx: nginx: [emerg] unknown directive "<------>proxy_pass" in /etc/nginx/sites-enabled/*сайт*:9
nginx: configuration file /etc/nginx/nginx.conf test failed

Гугление не помогло.

Вот конфиги nginx

default:

# Неизвестные соединения останавливаются nginx-ом c 403 error
server {
listen *:80 default_server;
return 403;
}

*сайт*:

server {
listen *:80;
server_name *сайт*;
location / {
<------>proxy_pass http://127.0.0.1:81/;
}
location ~* \.(jpg|jpeg|gif|png|ico|css|js|txt|doc|docx|xls|xlsx|ppt|pptx)$ {
<------>root /var/www/vhosts/*сайт*/www;
}
}
Subject Author Posted

Nginx + Apache

spbsprut January 28, 2014 05:05PM

Re: Nginx + Apache

Sergey 'dreik' Kolesnik January 28, 2014 05:38PM

Re: Nginx + Apache

Валентин Бартенев January 28, 2014 05:38PM

Re: Nginx + Apache

Dmitry Ivanov January 29, 2014 03:26AM

Re: Nginx + Apache

spbsprut January 30, 2014 03:57AM

Re: Nginx + Apache

spbsprut January 30, 2014 03:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 116
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready