VPS(デジタルオーシャン、centOS)でnginxを実行すると問題が発生します
それが示している:
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]
何が問題ですか?