nginx(fastdl) не хочет работать

Статус
В этой теме нельзя размещать новые ответы.

KenCarter

Заблокированные
Регистрация
29 Авг 2017
Сообщения
71
Симпатии
8
Пол
Мужской
Здрасте :D
Пытаюсь поставить сервера на VDS'ке и сейчас настраиваю nginx для фастдл. Но проблема в том, что nginx не хочет работать(точнее, не хочет работать фастдл) и выдаёт какую-то ересь в логах.
Чекайте сами:
2018/01/05 18:22:03 [emerg] 9172#9172: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:22:03 [emerg] 9172#9172: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:22:03 [emerg] 9172#9172: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:22:03 [emerg] 9172#9172: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:22:03 [emerg] 9172#9172: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:22:03 [emerg] 9172#9172: still could not bind()
2018/01/05 18:25:54 [emerg] 9285#9285: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:25:54 [emerg] 9285#9285: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:25:54 [emerg] 9285#9285: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:25:54 [emerg] 9285#9285: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:25:54 [emerg] 9285#9285: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/01/05 18:25:54 [emerg] 9285#9285: still could not bind()
2018/01/05 18:28:26 [error] 546#546: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:29:31 [error] 1513#1513: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:29:34 [error] 1513#1513: *4 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:31:54 [error] 1664#1664: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:31:55 [error] 1664#1664: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:31:56 [error] 1664#1664: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:31:57 [error] 1664#1664: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:31:57 [error] 1664#1664: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "46.8.29.39", referrer: "http://46.8.29.39/jail/maps/de_dust2.bsp"
2018/01/05 18:31:58 [error] 1664#1664: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:31:58 [error] 1664#1664: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "46.8.29.39", referrer: "http://46.8.29.39/jail/maps/de_dust2.bsp"
2018/01/05 18:32:22 [error] 1664#1664: *2 open() "/usr/share/nginx/html/publicl/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /publicl/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:27 [error] 1664#1664: *3 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:30 [error] 1664#1664: *3 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:30 [error] 1664#1664: *3 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:31 [error] 1664#1664: *3 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:32 [error] 1664#1664: *3 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:32 [error] 1664#1664: *3 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:32 [error] 1664#1664: *4 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:32:36 [error] 1664#1664: *5 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:34:02 [error] 1664#1664: *6 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:34:05 [error] 1664#1664: *7 "/usr/share/nginx/html/public/maps/index.html" is not found (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/ HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:34:08 [error] 1664#1664: *7 "/usr/share/nginx/html/public/index.html" is not found (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/ HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:36:03 [error] 1664#1664: *8 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:36:40 [error] 1820#1820: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:36:41 [error] 1820#1820: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:36:42 [error] 1820#1820: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:36:43 [error] 1820#1820: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:36:47 [error] 1820#1820: *2 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:37:00 [error] 1820#1820: *3 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:39:59 [error] 1943#1943: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:00 [error] 1943#1943: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:01 [error] 1943#1943: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:01 [error] 1943#1943: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "46.8.29.39", referrer: "http://46.8.29.39/jail/maps/de_dust2.bsp"
2018/01/05 18:40:16 [error] 1943#1943: *2 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:26 [error] 1943#1943: *6 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:26 [error] 1943#1943: *6 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:27 [error] 1943#1943: *6 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:40:56 [emerg] 2026#2026: "user" directive is not allowed here in /etc/nginx/conf.d/default.conf:1
2018/01/05 18:40:57 [emerg] 2057#2057: "user" directive is not allowed here in /etc/nginx/conf.d/default.conf:1
2018/01/05 18:40:59 [emerg] 2089#2089: "user" directive is not allowed here in /etc/nginx/conf.d/default.conf:1
2018/01/05 18:41:08 [error] 2143#2143: *1 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:41:09 [error] 2143#2143: *1 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:41:26 [emerg] 2175#2175: "user" directive is not allowed here in /etc/nginx/conf.d/default.conf:1
2018/01/05 18:45:28 [error] 2319#2319: *1 open() "/usr/share/nginx/html/public/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /public/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:48:58 [error] 2438#2438: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:51:34 [error] 2564#2564: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:51:35 [error] 2564#2564: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
2018/01/05 18:51:36 [error] 2564#2564: *1 open() "/usr/share/nginx/html/jail/maps/de_dust2.bsp" failed (2: No such file or directory), client: 178.121.7.50, server: localhost, request: "GET /jail/maps/de_dust2.bsp HTTP/1.1", host: "46.8.29.39"
Конфиг nginx:
user root;
worker_processes 1;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
use epoll;
}

http {
include /etc/nginx/mime.types;

access_log /var/log/nginx/access.log;

sendfile on;
tcp_nopush on;
keepalive_timeout 15;
tcp_nodelay on;
directio 5m;
expires max;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

server {
#listen 80;
location / {
root /var/www/;
index index.html index.htm;
autoindex on;
autoindex_exact_size off;
set $limit_rate 3m; # ограничиваем скорость скачивания до 3мбайт
}
location ~ /(.*)/.*\.cfg { # запрещаем скачивать cfg файлы
deny all;
}
location ~ /(.*)/addons/ { # запрещаем доступ к addons
deny all;
}
location ~ /(.*)/logs/ { # запрещаем доступ к addons
deny all;
}
}

}
Может кто сказать, в чём проблема?
 

zerg

Пользователь
Регистрация
8 Июн 2017
Сообщения
51
Симпатии
24
Пол
Мужской
No such file or directory
учитесь читать логи
 

KenCarter

Заблокированные
Регистрация
29 Авг 2017
Сообщения
71
Симпатии
8
Пол
Мужской
zerg, Вместе чекать будем?1515157385359.png
 

paffgame

D0L64E6
Разработчик
Регистрация
9 Июн 2017
Сообщения
154
Симпатии
84
Пол
Мужской
Telegram
@paffgame
чекать пути тоже вместе будем?
Путь из лога: /usr/share/nginx/html/jail/maps/de_dust2.bsp
Путь со скрина фтп: /home/servak/jail/cstrike/maps/de_dust2.bsp
 
  • Мне нравится
Симпатии: zerg

zerg

Пользователь
Регистрация
8 Июн 2017
Сообщения
51
Симпатии
24
Пол
Мужской
KenCarter, Видимо, вместе!
root /var/www/; как бы не пляшет
 

KenCarter

Заблокированные
Регистрация
29 Авг 2017
Сообщения
71
Симпатии
8
Пол
Мужской
paffgame, А почему так? Я же задавал путь к ярлыку...
Раньше таких косяков не было, когда настраивал nginx[DOUBLEPOST=1515157763][/DOUBLEPOST]zerg, Что ты имеешь ввиду?
Я лично всегда делал по этой статье и норм было :D
 

KenCarter

Заблокированные
Регистрация
29 Авг 2017
Сообщения
71
Симпатии
8
Пол
Мужской
zerg, Предположим.
А что, если мне нужно для двух серверов?
 

zerg

Пользователь
Регистрация
8 Июн 2017
Сообщения
51
Симпатии
24
Пол
Мужской
KenCarter, другой путь указать
 

KenCarter

Заблокированные
Регистрация
29 Авг 2017
Сообщения
71
Симпатии
8
Пол
Мужской
Спасибо zerg за помощь в настройке fastdl :3
Можно закрывать:)
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу