2007年10月03日

インストールしたてのDebianなapache2の設定でよくやる事メモ

livedoorClipに登録 | このエントリーをはてなブックマークに追加 | del.icio.usに登録 | MM/Memoに登録

まっさらなサーバで作業すると、いつもこの作業。



■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


トラックバックURL

この記事にコメントする

名前:
URL:
  情報を記憶: 評価: 顔