Last update: 2009-05-09 (土) 19:28:55
実施: 2009/02/10
玄箱HGメモ:Debian:default編集画面
緑文字が入力コマンド。
Debian Apache2 SSL対応
SSL設定
Apache2 default設定
2009/02/13追記
/etc/apache2/sites-available/defaultを直接操作するのは嫌がられているみたいなので、/etc/apache2/sites-available/defを使います。
以降のページではdefaultをdefに読み換えてください。
/etc/apache2/sites-available/defaultの例
以下の3行を#でコメントアウトして4行を追加
旧
NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost
新
# NameVirtualHost * # <VirtualHost *> # ServerAdmin webmaster@localhost NameVirtualHost *:80 <VirtualHost *:80> ServerName KAGUYA:80 ServerAdmin piroshiki_man10@yahoo.co.jp
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>