LoginSignup
0

More than 5 years have passed since last update.

nginxの向き先がwordpressのディレクトリに行っていないとき

Posted at

Wordpressを/var/www/wordpressに設置して、
/etc/nginx/conf.d/wordpress.conf
も設置したのに、nginxの標準ページが表示されてしまう。

そんなときは、
/etc/nginx/conf.d/default.conf
が存在していないか確認すると良いでしょう。
このファイルが置かれていると、wordpress.confよりも優先的に読まれてしまうので同一ポートだった場合wordpress.confの設定が無効化されてしまいます。

default.confをdefault.conf.bkなどにリネームしておくことで解決できます。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0