日期:2014-05-16  浏览次数:20628 次

lnmp nginx 配置
nginx下的配置

server
{
listen       80;
server_name www.te99st11.com;
index index.html index.htm index.php;
root  /home/wwwroot;

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;
}
include vhost/*.conf;
}


为什么本地用www.te99st11.com   访问不了

用localhost可以访问
------最佳解决方案--------------------
null
------其他解决方案--------------------
随便来个人,我结贴了