<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/nanige/">
    <title>memo録</title>
    <link>http://w.atwiki.jp/nanige/</link>
    <atom:link href="https://w.atwiki.jp/nanige/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>memo録</description>

    <dc:language>ja</dc:language>
    <dc:date>2010-08-09T19:19:15+09:00</dc:date>
    <utime>1281349155</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/12.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/11.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nanige/pages/4.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/15.html">
    <title>Apche2::Access</title>
    <link>https://w.atwiki.jp/nanige/pages/15.html</link>
    <description>
      *Apache2::Access
----
編集中のページです。mod_perl2 Documentsを和訳しています。
----
**コンテンツ
-[[概要&gt;#synop]]
-[[説明&gt;#desc]]
-[[API&gt;#api]]
--[[allow_methods&gt;#allow_methods]]
--[[allow_options&gt;#allow_options]]
--[[allow_overrides&gt;#allow_overrides]]
--[[allow_override_opts&gt;#allow_override_opts]]
--[[auth_name&gt;#auth_name]]
--[[auth_type&gt;#auth_type]]
--[[get_basic_auth_pw&gt;#get_basic_auth_pw]]
--get_remote_logname
--note_auth_failure
--note_basic_auth_failure
--note_digest_auth_failure
--requires
--satisfies
--some_auth_required

**&amp;aname(synop){概要}
 use Apache2::Access ();
 
 # GET methodのみを許可する
 $r-&gt;allow_methods(1, qw(GET));
 
 # Apache オプションの値
 $options = $r-&gt;allow_options();
 
 # Apache AllowOverride value
 $allow_override = $r-&gt;allow_overrides();
 
 # AllowOverrideでどのオプションが許可されているか (Apache 2.2以降)
 $allow_override_opts = $r-&gt;allow_override_opts();
 
 # auth name (&quot;foo bar&quot;)
 $auth_name = $r-&gt;auth_name();
 
 # 認証タイプ
 $auth_type = $r-&gt;auth_type();
 $r-&gt;auth_type(&quot;Digest&quot;);
 
 # Basic 認証プロセス
 my ($rc, $passwd) = $r-&gt;get_basic_auth_pw();
 
 # リモートユーザのログイン名 (RFC1413)
 $remote_logname = $r-&gt;get_remote_logname();
 
 # 認証の失敗を動的に記録
 $r-&gt;note_auth_failure();
 
 # Basic 認証の失敗を記録
 $r-&gt;note_basic_auth_failure();
 
 # Digest 認証の失敗を記録
 $r-&gt;note_digest_auth_failure();
 
 # Apache Request の値
 $requires = $r-&gt;requires();
 
 # Apache が満たした値 (as a number)
 $satisfy = $r-&gt;satisfies();
 
 # 認証が設定されているかのチェック
 $need_auth = $r-&gt;some_auth_required();

**&amp;aname(desc){説明}
このモジュールが提供するAPIは、アクセス、認証、承認のフェーズを扱う。
Apache2::accessはApache2::RequestRecを拡張する。

**&amp;aname(api){API}
Apache2::accessは、以下の関数、および/または メソッドを提供する:

***&amp;aname(allow_methods){allow_methods}
許可するHTTPメソッドを指定する
 $r-&gt;allow_methods($reset);
 $r-&gt;allow_methods($reset, @methods);
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:arg1: $reset(boolean)|true値を指定した場合、以前に許可したメソッドは全て除外される。しかし、リストは無傷で残る。
:opt arg2: @methods(array of strings)|許可するHTTPメソッドのリスト(e.g. GETおよびPOST)
:ret: 返り値なし|
:since: 2.0.00|   

例: 直前の設定によらず、GETおよびPOSTメソッドのみを許可する場合:
 $r-&gt;allow_methods(1, qw(GET POST));

***&amp;aname(allow_options){allow_options}
このリクエストのオプションを検索する
 $options = $r-&gt;allow_options();
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:ret: $options(integer)|オプションのビットマスク。通常 Apache2::Const :options constants に対して、ビット論理演算子とともに使用される。
:since: 2.0.00| 

例: 現在のリクエストの設定が次のようだった場合:
 Options None
 Options Indexes FollowSymLinks
以下が当てはまる
  use Apache2::Const -compile =&gt; qw(:options);
 $r-&gt;allow_options &amp; Apache2::Const::OPT_INDEXES;   # TRUE
 $r-&gt;allow_options &amp; Apache2::Const::OPT_SYM_LINKS; # TRUE
 $r-&gt;allow_options &amp; Apache2::Const::OPT_EXECCGI;   # FALSE

***&amp;aname(allow_overrides){allow_overrides}
このリクエストのAllowOverrideの値を検索する
 $allow_override = $r-&gt;allow_overrides();
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:ret: $allow_override(integer)|AllowOverrideのビットマスク。通常 Apache2::Const :override constants に対して、ビット論理演算子とともに使用される。
:since: 2.0.00| 

例: 現在のリクエストの設定が次のようだった場合:
 AllowOverride AuthConfig
以下が当てはまる
 use Apache2::Const -compile =&gt; qw(:override);
 $r-&gt;allow_overrides &amp; Apache2::Const::OR_AUTHCFG; # TRUE
 $r-&gt;allow_overrides &amp; Apache2::Const::OR_LIMIT;   # FALSE

***&amp;aname(allow_override_opts){allow_override_opts}
このリクエストの、AllowOverride Options=... で許可されたオプションのビットマスクを検索する
 $override_opts = $r-&gt;allow_override_opts();
単一オプションの有効化は、Apache 2.2で導入された。Apache 2.0では、この関数は、Apache2::Const::OPT_UNSET | Apache2::Const::OPT_ALL | Apache2::Const::OPT_INCNOEXEC | Apache2::Const::OPT_SYM_OWNER | Apache2::Const::OPT_MULTI を返す。この値はApache 2.2でのデフォルト値（設定していなければ）に一致する。
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:ret: $override_opts(integer)|overrideオプションのビットマスク。通常 Apache2::Const :options constants に対して、ビット演算演算子とともに使用される。
:since: 2.0.3| 

例: 現在のリクエストの設定が次のようだった場合:
 AllowOverride Options=Indexes,ExecCGI
以下が当てはまる
 use Apache2::Const -compile =&gt; qw(:options);
 $r-&gt;allow_override_opts &amp; Apache2::Const::OPT_EXECCGI;   # TRUE
 $r-&gt;allow_override_opts &amp; Apache2::Const::OPT_SYM_LINKS; # FALSE

***&amp;aname(auth_name){auth_name}
現在の認可領域（realm）を取得、または設定する（ディレクトリ毎の設定ディレクティブ AuthName ）:
 $auth_name = $r-&gt;auth_name();
 $auth_name = $r-&gt;auth_name($new_auth_name);
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:opt arg1: $new_auth_name(string)|$new_auth_nameを指定する場合、新しいAuthName値が設定される
:ret: $(integer)|現在のAuthName値
:since: 2.0.00| 

AuthNameディレクティブは、サーバのドキュメント空間に、保護された領域を作成する。RFC 1945を引用すると&quot;これらの領域は、サーバ上の保護されたリソースを、それぞれが認証スキーム and/or 認証データベースによって保護された空間に割り当てられるようにする。&quot;クライアントは、それぞれのHTTPリクエストと共にどの認証クレデンシャルを送信するかを決定するために、サーバのルートURLを使用する。これらのクレデンシャルは、これらを作成した認証領域の名前にタグ付けされている。認証段階の間は、サーバは、認証にどのクレデンシャルを使用するかを決定するのに、$r-&gt;auth_name()で得られる現在の認証領域を使用する。

***&amp;aname(auth_type){auth_type}
リクエストのために要求される認証のタイプを取得、または設定する（ディレクトリ毎の設定ディレクティブ AuthType ）:
 $auth_type = $r-&gt;auth_type();
 $auth_type = $r-&gt;auth_type($new_auth_type);
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:opt arg1: $new_auth_type(string)|$new_auth_typeを指定する場合、新しいAuthType値が設定される
:ret: $(integer)|現在のAuthType値
:since: 2.0.00| 

通常AuthTypeには、ベーシック認証スキーム（RFC 1945, &#039;&#039;&#039;Hypertext Transfer Protocol -- HTTP/1.0&#039;&#039;&#039;で定義）を使用するためのBasicがセットされるが、独自に作成した認証タイプをセットすることもできる。

***&amp;aname(get_basic_auth_pw){get_basic_auth_pw}
リクエストヘッダからパスワードを取得
 my ($rc, $passwd) = $r-&gt;get_basic_auth_pw();
:obj: $r(Apache2::RequestRec オブジェクト)|現在のリクエスト
:ret1: $rc(Apache2::Const constant)|$passwordがセットされていたら（かつ、$r-&gt;userにおいて正しい値が保障される場合）Apache2::Const::OKを返す。それ以外の場合はエラーコードか、あるいは以下のコードを返す。
明確に拒否された場合は Apache2::Const::HTTP_INTERNAL_SERVER_ERROR、認証がまったく使用されていない場合は Apache2::Const::HTTP_UNAUTHORIZED、認証は必要だが、それがBasicでない（おそらくこの場合呼び出しは拒否される）場合は Apache2::Const::DECLINED。
:ret2: $ret(string)|ヘッダにセットされたパスワード（デコード済み）
:since: 2.0.00| 

AuthTypeが設定されていなければ、まず最初にBasicがセットされる。



#comment    </description>
    <dc:date>2010-08-09T19:19:15+09:00</dc:date>
    <utime>1281349155</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/16.html">
    <title>mod_perl2 API</title>
    <link>https://w.atwiki.jp/nanige/pages/16.html</link>
    <description>
      mod_perl2 Documents を極少しずつ和訳中です。    </description>
    <dc:date>2010-08-03T23:44:23+09:00</dc:date>
    <utime>1280846663</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/nanige/pages/2.html</link>
    <description>
      **メニュー
-[[emacs]]
-[[xyzzy]]
-mod_perl2
--[[mod_perl2 API]]
---[[Apche2::Access]]
---Apache2::CmdParms

----

**リンク
-&amp;link_tag()

-[[@wiki&gt;&gt;http://atwiki.jp]]
-[[@wikiご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)

&amp;counter()
&amp;counter(today)

&amp;link_editmenu(text=ここを編集)    </description>
    <dc:date>2010-08-03T23:01:10+09:00</dc:date>
    <utime>1280844070</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/12.html">
    <title>xyzzy - encoding</title>
    <link>https://w.atwiki.jp/nanige/pages/12.html</link>
    <description>
      xyzzyで
**バッファのエンコーディング形式変更 change-fileio-encoding
&gt; 
C-x C-k f
&lt;
&quot;Encoding:&quot; と表示されるので使用したい文字セットを入力する

ex. 
shift jis: sjis
euc: euc-jp~

※utf8を選択すると、ファイル先頭にBOM（0xffef）が付加される~
　これを避けるにはutf8nを選択する

**改行コード変更 change-eol-code
&gt;
C-x C-k n
&lt;
crlf→cr→lf…の順に変更

**キャレット位置の文字コードを見る
&gt;
C-x =:
&lt;    </description>
    <dc:date>2010-08-03T22:35:14+09:00</dc:date>
    <utime>1280842514</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/14.html">
    <title>xyzzy</title>
    <link>https://w.atwiki.jp/nanige/pages/14.html</link>
    <description>
      -[[xyzzy - encoding]]    </description>
    <dc:date>2010-07-30T00:50:35+09:00</dc:date>
    <utime>1280418635</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/13.html">
    <title>emacs</title>
    <link>https://w.atwiki.jp/nanige/pages/13.html</link>
    <description>
      -[[emacsカラー設定]]    </description>
    <dc:date>2010-07-30T00:47:47+09:00</dc:date>
    <utime>1280418467</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/nanige/pages/1.html</link>
    <description>
      開発過程で調べたことなど















\\    </description>
    <dc:date>2010-07-30T00:29:49+09:00</dc:date>
    <utime>1280417389</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/11.html">
    <title>emacsカラー設定</title>
    <link>https://w.atwiki.jp/nanige/pages/11.html</link>
    <description>
      color themeを使って[[emacs]]のカラー設定をする。
背景が暗い色じゃないと疲れてしまうのです。
emacs21をdebian etch上で使用中。


- color themeのインストール
emacs on debianの場合

&gt;# apt-get inastall emacs-goodies-el

- emacs設定
~/.emacsに以下を追加

&gt;(require &#039;color-theme)
&gt;(color-theme-blue-sea)
blue-seaはthemeの名前


tags: &amp;tags()    </description>
    <dc:date>2008-04-05T21:57:29+09:00</dc:date>
    <utime>1207400249</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/3.html">
    <title>メニュー2</title>
    <link>https://w.atwiki.jp/nanige/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)

&amp;link_editmenu2(text=ここを編集)    </description>
    <dc:date>2008-04-05T21:48:09+09:00</dc:date>
    <utime>1207399689</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nanige/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/nanige/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_174_ja.html


-----


たとえば、#news(wiki)と入力すると以下のように表示されます。


#news(wiki)
    </description>
    <dc:date>2008-04-04T00:42:58+09:00</dc:date>
    <utime>1207237378</utime>
  </item>
  </rdf:RDF>
