- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2013-11-25
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2013-11-25 15:39:49
|
显示全部楼层
/usr/local/nginx/sbin/nginx -t 的返回信息如下
nginx: [warn] conflicting server name "www.baidu.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "baidu.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.lishuangchao.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "lsc.com" on 0.0.0.0:80, ignored
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
***********************************************************************************************
nginx.conf信息如下:
server
{
listen 80;
server_name www.lnmp.org;
index index.html index.htm index.php;
root /home/wwwroot/default;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /status {
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log /home/wwwlogs/access.log access;
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
www.baidu.com.conf信息如下
server
{
listen 80 default;
server_name www.baidu.com baidu.org www.lishuangchao.com lsc.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot;
include wordpress.conf;
location ~ .*\.(php|php5)?$
{
#try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
} |
|