忍者ブログ
個人的メモ
[1]  [2]  [3]  [4
 [PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

 /etc/apache2/apache2.conf
 
ServerTokens Full
ServerTokens ProductOnly
 
 
ServerSignature On
ServerSignature Off
 
 
 
UserDir public_html
UserDir disabled
 
 
[特定のユーザーのみ許可]
UserDir disabled
UserDir enabled user1 user2 user3
 
ユーザーディレクトリを許可したいユーザーを「UserDir enabled」に続けてスペース区切りで列挙する。 
 
[特定のユーザーのみ禁止]
UserDir enabled
UserDir disabled user4 user5 user6
 
ユーザーディレクトリを禁止したいユーザーを「UserDir disabled」に続けてスペース区切りで列挙する。
 

拍手[0回]

PR

サーバ:192.168.0.1
共有フォルダ:share
マウント先:/media/share
ユーザ名:user

 mount -t cifs //192.168.0.1/share /media/share -o username=user

拍手[0回]

ext4フォーマット方法

mkfs.ext4 /dev/sdb1

拍手[0回]

環境:Debian6
ドメイン:www.example.com
ドキュメントルート:/var/www/www.example.com
 

ドキュメントルートのディレクトリを作成
# mkdir /var/www/www.example.com

www.example.com」ファイルを新規作成する。
# vi /etc/apache2/sites-available/www.example.com

--------------------------------------------------------------------------------
<VirtualHost *:80>
        ServerName www.example.com
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/www.example.com
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/www.example.com>
                #Options Indexes FollowSymLinks MultiViews
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </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 ${APACHE_LOG_DIR}/www.example.com.error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/www.example.com.access.log combined

</VirtualHost>
--------------------------------------------------------------------------------

サイトを有効にする
# a2ensite www.example.com

設定をリロード
# /etc/init.d/apache2 reload
 

拍手[0回]

 環境:Debian6

DNSの場合、設定ファイルの一部にtabが入っているとエラーとなる。

「/etc/bind/named.conf.local」に以下を追記
---------- ---------- ---------- ---------- ---------- ----------
zone "example.com" {
  type master;
  file "/etc/bind/db.example.com;
};

zone "0.168.192.in-addr.arpa" {
  type master;
  file "/etc/bind/db.0.168.192.in-addr.arpa";
};
------------------------------------------------------------

「/etc/bind/example.com」を作成
------------------------------------------------------------
$TTL    60
@       IN      SOA     example.com. root.example.com. (
         1   ; Serial
        60   ; Refresh
        10   ; Retry
       120   ; Expire
        60 ) ; Negative Cache TTL
;
        IN      NS      example.com.
@       IN      A       192.168.0.103
sv      IN      A       192.168.0.101
www     IN      CNAME   sv
 
------------------------------------------------------------

「/etc/bind/db.0.168.192.in-addr.arpa」を作成
------------------------------------------------------------
$TTL 10
@       IN      SOA     
example.com.      root. example.com. (
        1       ; Serial
        10      ; Refresh 10sec
        10      ; Retry 10sec
        10      ; Expire 10sec
        10      ; Min 10 sec
)
IN      NS      example.com.
101     IN      PTR     
example.com.
 
------------------------------------------------------------





拍手[0回]

 カレンダー 
03 2024/04 05
S M T W T F S
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
 フリーエリア 
 最新CM 
[01/10 ggiptipxer]
[01/10 jdalsxpnie]
[01/10 qlddbgskvu]
[01/08 vie7vvic7r0]
[01/06 mlq6opvq6y1]
 最新TB 
 プロフィール 
HN:
384氏
年齢:
47
性別:
男性
誕生日:
1976/08/07
 バーコード 
 ブログ内検索 
 P R 

Template by ららららいふ / Material by 素材くん「無料WEB素材屋」

忍者ブログ [PR]