apache 関連のファイルに mod_rewrite をロードさせようと追記して
apache再起動
。。。「すでにロードされている」メッセージ
でも、.htaccess が効かない
なぜだ?
/etc/apache2/sites-available/000-default.conf
↓編集前
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/hashimoto/www/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName localhost
</VirtualHost>
↓「Directory」を追記した
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/hashimoto/www/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName localhost
<Directory /home/hashimoto/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
無事に .htaccess が反応するようになった。
CGIも動かなかったがここにかけば動くのだろう