2007年10月03日
まっさらなサーバで作業すると、いつもこの作業。
■VirtualHostの追加と有効化
■rewriteを有効化
■VirtualHostの追加と有効化
# cd /etc/apache2/sites-available # vi foo.example.com # a2ensite foo.example.com Site foo.example.com installed; run /etc/init.d/apache2 reload to enable.
■rewriteを有効化
# /usr/sbin/apache2ctl configtest Syntax error on line 9 of /etc/apache2/sites-enabled/foo.example.com: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration # a2enmod rewrite Module rewrite installed; run /etc/init.d/apache2 force-reload to enable. # /usr/sbin/apache2ctl configtest Syntax OK