vhost配置完成后,域名无法ping通
我安装的lnmp1.2,按照文档配置vhost后,域名php.shopa.com无法访问,请问是哪里问题。server{
listen 80;
#listen [::]:80;
server_name php.shopa.com;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/php.shopa.com;
include none.conf;
#error_page 404 /404.html;
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
注:我是在虚拟机上安装的lnmp1.2 配置文件没有问题
无法ping通可能网络有问题
页:
[1]