Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
проблема с запуском nginx
- To: nginx-ru@xxxxxxxxx
- Subject: проблема с запуском nginx
- From: "truper" <nginx-forum@xxxxxxxx>
- Date: Thu, 10 Mar 2011 23:25:20 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=u3QfsYeW6IYfo/qKV25Rtt4vIZhA+tm2hltAo+omShk=; b=R8z2hndP7aktFWDy+aJ3pC3rHgT487VCWD2Qkgy0oDDKGEYisWKV0AfisiH0wmA0Uzz6cxGqX8al0iM2Ie3qRRycfWA6R96sK0ZgcQntQE/XDC8NTGkqr8HXrBL8it4a;
При старте выдает вот такую ошибку..
пишу через service start
starting nginx: [emerg]: the invalid "server_name" parameter in
/etc/nginx/sites-enabled/serb.net:3
вот мой конфиг вирт. хоста
server {
listen 80;
server_name serb.net;
access_log /var/log/nginx.access_log;
location ~*
\.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$
{
root /var/www/serb.net/;
index index.html index.php;
access_log off;
expires 30d;
}
location ~ /\.ht {
deny all;
}
location / {
proxy_pass http://127.0.0.1:81/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_set_header Host $host;
proxy_connect_timeout 60;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_redirect off;
proxy_set_header Connection close;
proxy_pass_header Content-Type;
proxy_pass_header Content-Disposition;
proxy_pass_header Content-Length;
}
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,182186,182186#msg-182186
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|