它顯示在我的VPS運行nginx的,當一個問題(數字海洋,CentOS的)運行時:
nginx: [emerg] unknown directive "[alert" in /usr/local/nginx/conf/wordpress.conf:14
wordpress.conf:
location/{
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
[alert type="notice" close="true"]
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
[/alert]
問題是什麼?
在nginx配置中沒有'[alert]'這樣的事情。你想做什麼? – Jerodev 2014-10-29 13:47:18
@Jerodev我試圖配置我的服務器運行hexo,但不知何故nginx沒有工作。我是一名初學者。 – 2014-10-29 13:54:16
首先刪除'[alert type =「notice」close =「true」] rewrite/wp-admin $ $ scheme:// $ host $ uri/permanent; [/ alert]' – dyachenko 2014-10-29 14:13:22