nginx - не показывает мой сайт (показывает только свое приветствие)

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

jedai108
Сообщения: 93
ОС: *.deb

nginx - не показывает мой сайт

Сообщение jedai108 »

звожу свои сайты, но nginx показывает
welcome to nginx!

/etc/nginx/sites-enambled


Код: Выделить всё

server {
    listen   80;
    server_name  mamm;

    access_log  /var/log/nginx/localhost.access.log;
    location /art {
        root /home/jedai/wwwmy/mamm;
        index  index.php;
    }

    location / {
        root /home/jedai/wwwmy/mamm;
        index  index.php;
    }

    location /doc {
        root   /usr/share;
        autoindex on;
        allow 127.0.0.1;
        deny all;
    }

    location /images {
        root   /usr/share;
        autoindex on;
    }


    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /home/jedai/wwwmy/mamm$fastcgi_script_name;
                include        fastcgi_params;

    }

    location ~ /\.ht {
        #deny  all;
    }
}




а вот /etc/nginx/nginx.conf

Код: Выделить всё

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

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

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;
    tcp_nodelay        on;

    gzip  on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";

    include /etc/nginx/sites-enabled/*;
}
Спасибо сказали:
Аватара пользователя
sash-kan
Администратор
Сообщения: 13939
Статус: oel ngati kameie
ОС: GNU

Re: nginx - не показывает мой сайт

Сообщение sash-kan »

jedai108 писал(а):
23.11.2009 12:23
/etc/nginx/sites-enambled
jedai108 писал(а):
23.11.2009 12:23
include /etc/nginx/sites-enabled/*;
чему верить?

jedai108 писал(а):
23.11.2009 12:23
но nginx показывает
в ответ на какой запрос?
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
Спасибо сказали: