blog启动了

现在系统是运行起来了,但nginx的配置文件还是有问题啊。

vhosts里配置文件内容如下:

server
{
listen 80;
server_name www.ililin.xyz;
index index.html index.htm index.php;
root /usr/local/nginx/html/wordpress;

location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/tmp/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/wordpress$fastcgi_script_name;
}

}

此配置的话,wordpress显示的效果如上;

而如果在server_name项加上服务器IP的话:

server
{
listen 80;
server_name www.ililin.xyz ;
index index.html index.htm index.php;
root /usr/local/nginx/html/wordpress;

location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/tmp/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/wordpress$fastcgi_script_name;
}

}

显示就正常了,究竟是什么原因呢??还得排查一下。。。

 

晚上又发现地址有问题,除了首页能正常显示域名外,所有链接的地址都是显示IP的,这个又是哪里出问题了呀?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注