读书人

lnmp nginx 配置解决方法

发布时间: 2014-03-19 16:33:32 作者: rapoo

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可以访问
[解决办法]
lnmp nginx 配置解决方法

读书人网 >Apache

热点推荐