我通過apt-upgrade(運行ubuntu 14.04)升級了我的nginx包,現在,當我嘗試連接到我的網站時,它只顯示一個空白頁面(沒有錯誤消息)。Nginx在升級後在我的網站上顯示空白頁面
這就是我的nginx的配置文件的樣子:
server {
listen 80;
server_name www.example.com;
root /home/forge/example.com/public;
# FORGE SSL (DO NOT REMOVE!)
# ssl on;
# ssl_certificate;
# ssl_certificate_key;
index index.html index.htm index.php;
charset utf-8;
location/{
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/example.com-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
server {
listen 80;
server_name example.com;
return 301 http://www.example.com$request_uri;
}
此外,error.log中顯示了這個消息:conflicting server name "www.example.com" on 0.0.0.0:80, ignored
這是不是一個真正的答案,如果你有修訂,令你應該修改你原來的問題。 – Dayo 2014-09-25 18:23:03