![]()
| 2010年6月 | ||||||
|---|---|---|---|---|---|---|
| 日 | 月 | 火 | 水 | 木 | 金 | 土 |
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
![]()
![]()
![]()
![]()
![]()
![]()
ubuntu 2010.02.02 [ Tue ] 18:20
root@ubuntu:~# a2enmod rewrite
Enabling module rewrite.
Run '/etc/init.d/apache2 restart' to activate new configuration!
...
<Directory /var/www/>
Options FollowSymLinks
AllowOverride FileInfo
Order allow,deny
allow from all
</Directory>
...
※Options は mod_rewrite、AllowOverride は .htaccessのための設定です。root@ubuntu:~# a2ensite new
Enabling site new.
Run '/etc/init.d/apache2 reload' to activate new configuration!
defaultの設定を無効にする場合
root@ubuntu:~# a2dissite default
Site default disabled.
Run '/etc/init.d/apache2 reload' to activate new configuration!
この方法で設定ファイルを小分けにしておけば、特定のアプリケーションのみ設定を無効にしたい場合など、該当の行をコメントアウトするのではなく、コマンドでファイル単位で簡単に切り替えられるので楽ですね。root@ubuntu:~# service apache2 restart
root@ubuntu:~# a2enmod ssl
Enabling module ssl.
See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates.
Run '/etc/init.d/apache2 restart' to activate new configuration
root@ubuntu:~# service apache2 restart
* Restarting web server apache2
... waiting (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
Listen 443は、/etc/apache2/ports.conf にすでに記述されているので、/etc/apache2/sites-available/httpd-ssl.conf のものは忘れずにコメントアウトしておきましょう。トラックバック(0) コメント(2)
コメント(2)
コメントする
このブログ記事を参照しているブログ一覧: [ubuntu][apache][cakephp]サーバー構築のメモ(2)
このブログ記事に対するトラックバックURL:
http://www.sorich.jp/blog/mt-tb.cgi/619

起動できずにはまってました。おかげでなおりました。
ありがとうございます。ほんとうに本当に助かりました!!!
>Listen 443は、/etc/apache2/ports.conf にすでに記述されているので、/etc/apache2/sites-available/httpd-ssl.conf のものは忘れずにコメントアウトしておきましょう。
お役に立てたようで、なによりですー。