.htaccessを有効にする | Subaru's Husband

Subaru's Husband

python、linux、バイクなんかのネタを書きます。
一応security業界でご飯を食べてます。
備忘録がメインだと思うので、未来の自分が助かれば最高。

ubunutuの場合は

/etc/apache2/sites-available/default
/etc/apache2/sites-available/default-ssl

の有効にしたいDirectoryの設定を

AllowOverride All

に変更してapacheの再起動


<Directory /var/www/>
  Options IncludesNoExec FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  allow from all

※設定は記載したDirectory以下に有効になることを気をつけて