玄箱HGメモ / Debian / default編集画面


Last update: 2009-05-14 (木) 15:46:23
実施: 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を使います。
以降のページではdefaultdefに読み換えてください。

/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>


コメント

コメントはありません。 コメント/玄箱HGメモ/Debian/default編集画面?

Online: 1


FrontPage

Soft

Tips


最新の20件

2021-12-21 2020-04-06 2020-03-10 2013-06-28 2013-11-13 2014-06-24

今日の20件

  • counter: 710
  • today: 1
  • yesterday: 0
  • online: 1

edit