Welcome! Log In Create A New Profile

Advanced

Re: Nginx + Apache

Sergey 'dreik' Kolesnik
January 28, 2014 05:38PM
ASCII-арт уберите из конфига.

WBR,
Sergey 'dreik' Kolesnik
Skype: dreik.lc
Cell: +7 (921) 943-5237


2014-01-29 spbsprut <nginx-forum@nginx.us>

> Не получается запустить 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;
> }
> }
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?21,246929,246929#msg-246929
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
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: 177
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