17
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS Lightsail でwordpress は.htaccessを使えないようだ

Posted at

開発中と言うこともあって、とりあえずIPでフィルターをかけたかったのだが、表題の通り、.htaccessが無効らしい。その変わりに次の場所に以下のファイルがあるので同様に記載してapacheを再起動すればOK

/opt/bitnami/apps/wordpress/conf/htaccess.conf

htaccess.confの一番下に、IPフィルターをいつもの要領で記載
スクリーンショット 2018-08-23 21.25.11.png

apache再起動のコマンドは

スクリーンショット 2018-08-23 21.26.38.png

無事にフィルターがかかったかどうかを確認。

17
6
0

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
17
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?