<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="ja">
<title>Xrea.comさんのサーバー応用編</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/" />
<modified>2006-01-09T02:43:19Z</modified>
<tagline>url: shellscript.biz</tagline>
<id>tag:shellscript.biz,2006://1</id>
<generator url="http://www.movabletype.org/" version="3.15-us">Movable Type</generator>
<copyright>Copyright (c) 2006, mvtp</copyright>
<entry>
<title>VALUE DOMAIN-DNS cnameレコードによるTypePad-ドメイン・マッピング</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000070.html" />
<modified>2006-01-09T02:43:19Z</modified>
<issued>2006-01-08T13:07:38Z</issued>
<id>tag:shellscript.biz,2006://1.70</id>
<created>2006-01-08T13:07:38Z</created>
<summary type="text/plain"><![CDATA[Xrea.comさんのサーバを含むドメイン総合サービス「VALUE DOMAIN」 &#160;&#160;&raquo;&#160;https://www.value-domain.com/index.php のネームサーバで独自(オリジナル)ドメインを運用し、 Six Apart - TypePad（シックス・アパート株式会社 タイプパッド） &#160;&#160;&raquo;&#160;http://www.sixapart.jp/typepad/ にドメイン・マッピングするとき、DNS変更のポイントをお知らせいたします。マッピング済みドメインを有効にする方法は、TypePadさんのヘルプ情報等でご確認ください。 【ドメイン名・サブドメイン(ホスト)名の例】 オリジナルドメイン 　 example.com TypePad登録ドメイン ***.typepad.jpドメイン・マッピング前(および後)のURL http://***.typepad.jp/abc/ドメイン・マッピング後のURL http://www.example.com/ VALUE-DOMAIN.COM(バリュードメイン) さんのDNS設定を変更します。 DNS「設定フィールド」に下記の CNAME (Canonical NAME 別名レコード) レコードを１行追加するだけです。 &#160;&#160;&#160;cname www ***.typepad.jp. 【設定上の注意事項】 [1] typepad.jpの末尾にドット.を付けないと、ホスト名とみなされ、***.typepad.jp.example.com と誤って設定したことになります。 [2] ホスト名(または、サブドメイン 例 www )なしの設定はできないようです。TypePad側 (「推奨カスタムDNS設定」が表示されます)...]]></summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>ブログ blog</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>Xrea.comさんのサーバを含むドメイン総合サービス「VALUE DOMAIN」<br />
&#160;&#160;&raquo;&#160;<a href="https://www.value-domain.com/index.php">https://www.value-domain.com/index.php</a><br />
のネームサーバで独自(オリジナル)ドメインを運用し、<br />
Six Apart - TypePad（シックス・アパート株式会社 タイプパッド）<br />
&#160;&#160;&raquo;&#160;<a href="http://www.sixapart.jp/typepad/">http://www.sixapart.jp/typepad/</a><br />
にドメイン・マッピングするとき、DNS変更のポイントをお知らせいたします。マッピング済みドメインを有効にする方法は、TypePadさんのヘルプ情報等でご確認ください。<br />
【ドメイン名・サブドメイン(ホスト)名の例】</p>

<blockquote>オリジナルドメイン 　 example.com<br />
TypePad登録ドメイン   ***.typepad.jp<br />ドメイン・マッピング前(および後)のURL ht<!-- &#160; -->tp://***.typepad.jp/abc/<br />ドメイン・マッピング後のURL ht<!-- &#160; -->tp://www.example.com/</blockquote>

<p>VALUE-DOMAIN.COM(バリュードメイン) さんのDNS設定を変更します。<br />
DNS「設定フィールド」に下記の <strong>CNAME (Canonical NAME 別名レコード)</strong> レコードを１行追加するだけです。</p>

<p>&#160;&#160;&#160;<big><strong>cname www ***.typepad.jp.</strong></big></p>

<p>【設定上の注意事項】<br />
[1] typepad.jpの末尾にドット<big><strong>.</strong></big>を付けないと、ホスト名とみなされ、<strong>***.typepad.jp.example.com</strong> と誤って設定したことになります。<br />
[2] ホスト名(または、サブドメイン 例 <strong>www</strong> )なしの設定はできないようです。TypePad側 (「推奨カスタムDNS設定」が表示されます) の制限により、ドメイン・マッピング後のURL ht<!-- &#160; -->tp://example.com/ とはならないようです。<br />
サブドメイン(ホスト)があってもドメイン・マッピング設定は可能です。<br />
&nbsp;&nbsp;&nbsp;「blog.example.comのようなサブドメインをマップできるの？」<br />
&nbsp;&nbsp;&raquo;&nbsp;<a href="http://help.typepad.jp/faq/cat64188/index.html#a0000640368">http://help.typepad.jp/faq/cat64188/index.html#a0000640368</a><br />
[3] ネームサーバーはVALUE-DOMAINさん独自の「NS1.VALUE-DOMAIN.COM」&#160;「NS2.VALUE-DOMAIN.COM」&#160;「NS3.VALUE-DOMAIN.COM」であることを確認して下さい。ときに、ネームサーバー dns1(2,3,4,5).name-services.com.を利用していることがあり、本ネームサーバでは cname設定は反映しません。</p>

<p>Your NS records at the parent servers are:<br />
&#160;&#160;&raquo;&#160;<a href="http://www.dnsreport.com/">www.DNSreport.com</a></p>

<pre>ns3.value-domain.com. [59.106.14.70 (NO GLUE)] [JP]
ns2.value-domain.com. [210.153.116.18 (NO GLUE)] [JP]
ns1.value-domain.com. [202.229.187.26 (NO GLUE)] [JP]</pre>

<p>であれば、上記設定は、比較的短時間で反映されます。DNS設定変更直後に、www.DNSreport.com での確認も可能です。</p>

<pre>dns5.name-services.com. [212.118.243.118 (NO GLUE)] [UK]
dns4.name-services.com. [64.74.96.242 (NO GLUE)] [US]
dns3.name-services.com. [63.251.92.193 (NO GLUE)] [US]
dns2.name-services.com. [216.52.184.230 (NO GLUE)] [US]
dns1.name-services.com. [69.25.142.1 (NO GLUE)] [US]</pre>

<p>であれば、</p>

<pre>DNS情報変更(example.com)  
ドメインのDNS情報を変更します。 
設定フィールド</pre>

<p>下段の<br />
<u><font color="blue">VALUE-DOMAIN独自のDNS機能で、同等の設定内容を表示するにはここをクリックしてください。</font></u><br />
をクリックして、ネームサーバー「NS1(2,3).VALUE-DOMAIN.COM」用の設定内容をテキストエディターにコピー後、ネームサーバー変更をおすすめいたします。</p>]]>

</content>
</entry>
<entry>
<title>KsGMap, Geocoding REST API, Google Maps API</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000068.html" />
<modified>2005-12-04T04:32:48Z</modified>
<issued>2005-11-20T04:00:56Z</issued>
<id>tag:shellscript.biz,2005://1.68</id>
<created>2005-11-20T04:00:56Z</created>
<summary type="text/plain"><![CDATA[ホームページ内のJavaScriptにより Google Maps APIを利用するだけで地図サイトが簡単に作成できます。 もちろん、Xrea.com さんのサーバは問題なく設置できます (但し、UTF-8 未対応のサーバ環境(Apacheなど)やクライアント側ブラウザの設定・種類では利用できません)。 スクリプトやHTMLで使用する文字コード (charset, encoding)は必ず、&quot;UTF-8&quot;となります。 2005年12月1日(予定)、日本地図においても Google Maps API 採用の測地系が世界共通基準 (世界測地系)に変更されますので、ご注意下さい。 [手順] (1) Google Maps API を使用するために、Google Maps API key を取得します。 &#160;&#160;&raquo;&#160;http://www.google.com/apis/maps/ (2) KsGMap さんの「汎用 Google Maps API スクリプト」 &quot;KsGMap&quot;の本体、サンプルページ (コンテンツは充実しています)などをWWWサーバにアップロードします(インストール・編集方法は KsGMap さんの解説ページをご覧下さい)。 &#160;&#160;&raquo;&#160;http://www.ksgmap.jp/...]]></summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>ホームページ内のJavaScriptにより Google Maps APIを利用するだけで地図サイトが簡単に作成できます。<br />
<strong>もちろん、Xrea.com さんのサーバは問題なく設置できます</strong> (但し、UTF-8 未対応のサーバ環境(Apacheなど)やクライアント側ブラウザの設定・種類では利用できません)。<br />
スクリプトやHTMLで使用する文字コード (charset, encoding)は必ず、&quot;<font color="red">UTF-8</font>&quot;となります。<br />
<u>2005年12月1日(予定)</u>、日本地図においても Google Maps API 採用の測地系が世界共通基準 (世界測地系)に変更されますので、ご注意下さい。</p>

<p>[手順]<br />
(1) Google Maps API を使用するために、<strong>Google Maps API key</strong> を取得します。<br />
&#160;&#160;&raquo;&#160;<a href="http://www.google.com/apis/maps/">http://www.google.com/apis/maps/</a></p>

<p>(2) KsGMap さんの「汎用 Google Maps API スクリプト」<br />
&quot;<strong>KsGMap</strong>&quot;の本体、サンプルページ (コンテンツは充実しています)などをWWWサーバにアップロードします(インストール・編集方法は KsGMap さんの解説ページをご覧下さい)。<br />
&#160;&#160;&raquo;&#160;<a href="http://www.ksgmap.jp/">http://www.ksgmap.jp/</a></p>

<p>(3) マップ初期値やXMLデータ編集のために、経度・緯度の座標を知りたいとき、「Geocoding REST API」などを利用します。<br />
&#160;&#160;&raquo;&#160;<a href="http://www.geocoding.jp/api/">http://www.<strong>geocoding.jp</strong>/api/</a><br />
住所やランドマーク名から経度・緯度を検索し、XML形式で座標を返します。<br />
[追記 2005/12/4]<br />
KsGMap さんが「<strong>座標取得支援ツール</strong>」を開発されました。HTML, JavaScript 2つのファイルをダウンロードするだけで、世界測地系対応の座標軸(10進法)が得られます。</p>

<pre>緯度 latitude  &lt;lat&gt;35.6**358&lt;/lat&gt; 
経度 longitude &lt;lng&gt;139.*48**4&lt;/lng&gt;</pre>
]]>

</content>
</entry>
<entry>
<title>Movable Type Version 3.2-ja, 3.2-en_USと不正な ScriptURI</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000067.html" />
<modified>2005-10-03T09:12:04Z</modified>
<issued>2005-10-02T07:17:30Z</issued>
<id>tag:shellscript.biz,2005://1.67</id>
<created>2005-10-02T07:17:30Z</created>
<summary type="text/plain"><![CDATA[エントリー「問題解決:MT 3.17と AdminCGIPath https+複数パス」 &#160;&raquo;&#160;http://shellscript.biz/archives/000062.html エントリー「MT 3.17の問題点:AdminCGIPath, SSLサーバ( https プロトコル)」 &#160;&raquo;&#160;http://shellscript.biz/archives/000061.html においても指摘いたしましたが、 [MT]/lib/MT/App.pm のサブルーチンおいて、Movable Typeの ScriptURI, StaticURI などが決定します。しかし、(たぶん)環境変数を多用した条件文が採用されているため、サーバ環境によっては、不正な ScriptURIとなることがあります。 Xrea.com さんのサーバでは、Movable Type 3.17-ja, 3.17(3.16)-en_US からこの問題が発生しています。このバージョンでは、https, AdminCGIPath などを利用する一部のユーザーだけの問題でした。 問題解決 以下の問題点はサーバーの「広告免除権」を購入して、環境変数が SERVER_PROTOCOL = HTTP/1.1 となれば解決します。 Movable Type Version 3.2-ja, 3.2-en_US では、MTのインストール、アップグレードともに不能となる深刻な問題となっています。 具体例として[ドメイン名...]]></summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>ブログ blog</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>エントリー「問題解決:MT 3.17と AdminCGIPath https+複数パス」<br />
&#160;&raquo;&#160;<a href="http://shellscript.biz/archives/000062.html">http://shellscript.biz/archives/000062.html</a><br />
エントリー「MT 3.17の問題点:AdminCGIPath, SSLサーバ( https プロトコル)」<br />
&#160;&raquo;&#160;<a href="http://shellscript.biz/archives/000061.html">http://shellscript.biz/archives/000061.html</a><br />
においても指摘いたしましたが、<br />
<strong>[MT]/lib/MT/App.pm</strong> のサブルーチンおいて、Movable Typeの <strong>ScriptURI</strong>, StaticURI などが決定します。しかし、(たぶん)環境変数を多用した条件文が採用されているため、サーバ環境によっては、<font color="red">不正な ScriptURI</font>となることがあります。<br />
<u>Xrea.com さんのサーバでは、Movable Type 3.17-ja, 3.17(3.16)-en_US からこの問題が発生しています</u>。このバージョンでは、https, AdminCGIPath などを利用する一部のユーザーだけの問題でした。</p>

<p><strong><font color="blue">問題解決</font></strong><br />
<u>以下の問題点はサーバーの「広告免除権」を購入して、環境変数が</u><br />
<strong>SERVER_PROTOCOL = HTTP/1.1</strong><br />
<u>となれば解決します</u>。<br />
<strong>Movable Type Version 3.2-ja, 3.2-en_US</strong> では、MTのインストール、アップグレードともに不能となる深刻な問題となっています。<br />
具体例として[ドメイン名 &quot;example.com&quot;、[MT]ディレクトリー &quot;mt&quot;]、<br />
&#160;&#160;ht<!--&#160;-->tp://www.example.com/mt/index.html<br />
にアクセスすると、インストールを開始する画面に変わりますが、<br />
&#160;&#160;ht<!--&#160;-->tp://www.example.com/mt/mt-upgrade.cgi?__mode=install</p>

<blockquote>ブログを始める前に、データベースを初期化してインストール作業を完了する必要があります。<br />&#160;&#133;&#133;<br />Version 3.2-ja Copyright c 2001-2005 Six Apart. All Rights Reserved.</blockquote>

<p>ボタン【インストール続行】をクリックすると、エラー表示となります。</p>

<pre>アドレス&#160;<strong><font color="red">included:</font>//www.example.com/mt/mt-upgrade.cgi</strong>
<strog>無効な構文エラー</strong></pre>

<p>前ページのソースを表示すると、</p>

<blockquote>&#160;&#133;<br /><strong><font color="red">ScriptURI = 'included:</font>//www.example.com/mt/mt-upgrade.cgi';</strong><br />ScriptBaseURI = '&#160;';<br />StaticURI = 'h<!--&#160;-->ttp://www.example.com/mt/mt-static/';<br />
HelpBaseURI = '&#160;';<br />&#160;&#133;<br />&#160;&#133;<br />&lt;p&gt;ブログを始める前に、データベースを初期化してインストール作業を完了する必要があります。&lt;/p&gt;<br />&#160;&#133;<br />&#160;&#133;<br />&lt;form method=&quot;post&quot; action=&quot;<strong><font color="red">included://</font>www.example.com/mt/mt-upgrade.cgi&quot;&gt;</strong><br />&lt;input type=&quot;hidden&quot; name=&quot;__mode&quot; value=&quot;install&quot;&gt;<br />&lt;input type=&quot;submit&quot; value=&quot;インストールを続行&quot; /&gt;<br />&lt;/form&gt;</blockquote>

<p>Xrea.com さんのサーバでは、<strong>[MT]/lib/MT/App.pm</strong> などのサブルーチンにおいて、今後も同様の問題が起こると思います。<br />
[追記 2005/10/3]<br />
MTをインストールしたXrea.com さんのサーバの環境変数を調べると、<br />
<strong>SERVER_PROTOCOL = INCLUDED</strong><br />
でした。<br />
&#160;&raquo;&#160;<a href="http://www.xrea.com/?action=ad">XREA.COM 広告について</a><br />
最下段&#160;「注2) CGIなどが適切に動かない場合、適宜対応してください。」<br />
Movable Type 3.2以降のインストール/アップグレード/使用に際して、サーバーの広告免除権を購入する方法を選択することになります。<br />
問題解決のために参考となったページを以下に列記します。<br />
(1) フォーラム「XREA SUPPORT BOARD」<br />
&#160;&#160;&raquo;&#160;<a href="http://sb.xrea.com/showthread.php?t=1984">http://sb.xrea.com/showthread.php?t=1984</a><br />
(2) フォーラム「XREA SUPPORT BOARD」<br />
&#160;&#160;&raquo;&#160;<a href="http://sb.xrea.com/printthread.php?t=6759&page=23&pp=15">http://sb.xrea.com/printthread.php?t=6759&page=23&pp=15</a></p>]]>

</content>
</entry>
<entry>
<title>WS_FTP Pro / Certificate has expired</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000066.html" />
<modified>2005-09-01T21:12:26Z</modified>
<issued>2005-08-30T18:06:03Z</issued>
<id>tag:shellscript.biz,2005://1.66</id>
<created>2005-08-30T18:06:03Z</created>
<summary type="text/plain">File Transfer Client for Windows WS_FTP Pro 8.03 日本語版にて、Xrea.com さんのサーバにSSL接続していましたが、 解説ページ: ○ エントリー「FTPS ( FTP over SSL, FTP/SSL )」 &amp;#160&amp;#160;&amp;#160;&amp;#160;http://shellscript.biz/archives/000054.html ○「FTPS(FTP over SSL)への対応について」 &amp;#160&amp;#160;&amp;#160;&amp;#160;http://sb.xrea.com/showthread.php?t=9288 2005/8/29-8/30、突然、複数のリモート(サーバ名 s7*, s1*7) とSSL接続不能となりました。通常のFTPは可能で、ログ記録は以下のようでした。 ホスト ユーザID.s**.xrea.com を探しています...接続中 : 221.186.***.**:21221.186.***.**:21 に 0.050000 秒で接続しました。サーバーからの応答を待っていますSSL セッションの初期化中...220 ProFTPDAUTH SSL234 AUTH...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>File Transfer Client for Windows WS_FTP Pro 8.03 日本語版にて、Xrea.com さんのサーバにSSL接続していましたが、<br />
解説ページ:<br />
○ エントリー「FTPS ( FTP over SSL, FTP/SSL )」<br />
&#160&#160;&#160;&#160;<a href="http://shellscript.biz/archives/000054.html">http://shellscript.biz/archives/000054.html</a><br />
○「FTPS(FTP over SSL)への対応について」<br />
&#160&#160;&#160;&#160;<a href="http://sb.xrea.com/showthread.php?t=9288">http://sb.xrea.com/showthread.php?t=9288</a><br />
2005/8/29-8/30、突然、複数のリモート(サーバ名 s7*, s1*7) とSSL接続不能となりました。通常のFTPは可能で、ログ記録は以下のようでした。</p>

<blockquote>ホスト ユーザID.s**.xrea.com を探しています...<br />接続中 : 221.186.***.**:21<br />221.186.***.**:21 に 0.050000 秒で接続しました。サーバーからの応答を待っています<br />SSL セッションの初期化中...<br />220 ProFTPD<br />AUTH SSL<br />234 AUTH SSL successful<br />SSL 接続エラー 655362:<br /><font color="red">Connect Failed: Certificate has expired</font><br />SSL Connect Failed<br />Host type (1): Automatic detect</blockquote>

<p>WS_FTP Proの本家サイトで、最新評価版をダウンロードしてインストール・実行しましたところ、FTP/SSLできました。クライアント用FTPソフトウェアの証明書が失効したため、<br />
「<strong>Certificate has expired</strong>」<br />
SSL使用不能となったようです。SSL接続を継続したいとき、バージョンアップが必要のようです。問題解決した評価版は以下のものです。<br />
&#160;&#160;<a href="http://www.ipswitch.com/Products/WS_FTP/">http://www.ipswitch.com/Products/WS_FTP/</a></p>

<pre><strong>Ipswitch WS_FTP Professional 2006</strong> - 2005.05.11
File Transfer Client for Windows [98/NT/2000/ME/XP/2003]
Copyright(c) 1992-2005 Ipswitch,Inc.
File Size: 9.7 MB</pre>

<p>なお、「XREA SUPPORT BOARD - FTP関連フォーラム」<br />
&#160;&#160;&#160;<a href="http://sb.xrea.com/showthread.php?t=9988">http://sb.xrea.com/showthread.php?t=9988</a><br />
に投稿しました。Xrea.com さんのご回答は、<br />
「<strong>POPS、IMAPS、SMTPS、FTPSでは、正式な証明書を発行しておりませんので、証明書の確認は無視か、無条件で受け入れる設定をお願いいたします。</strong>」とのことです。</p>]]>

</content>
</entry>
<entry>
<title>RFC2182 recommends at least 3 nameservers.</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000065.html" />
<modified>2005-08-16T08:04:46Z</modified>
<issued>2005-08-16T07:13:54Z</issued>
<id>tag:shellscript.biz,2005://1.65</id>
<created>2005-08-16T07:13:54Z</created>
<summary type="text/plain">Xrea.com さんのサーバでは、 汎用JP、CCTLD、他社管理ドメインなど(eNomで取得したドメイン以外)の場合: ns1.value-domain.com. [219.0.10.54] [JP] ns2.value-domain.com. [210.153.116.18] [JP] ns3.value-domain.com. [59.106.14.70] [JP] COMドメインなどeNomで取得したドメインの場合: dns1.name-services.com. [69.25.142.1] [US] dns2.name-services.com. [216.52.184.230] [US] dns3.name-services.com. [63.251.92.193] [US] dns4.name-services.com. [64.74.96.242] [US] dns5.name-services.com. [212.118.243.118] [UK] のネームサーバを利用します。 [DNS チェックサイト] &amp;#160;&amp;#160;http://www.dnsreport.com/ &amp;#160;&amp;#160;http://www.squish.net/dnscheck/ &amp;#160;&amp;#160;http://www.zonecheck.fr/ などで頻繁にネームサーバのレスポンスをチェックしてみると、ときに ERROR: Some of your nameservers...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>Xrea.com さんのサーバでは、<br />
汎用JP、CCTLD、他社管理ドメインなど(eNomで取得したドメイン以外)の場合:</p>

<pre>ns1.value-domain.com. [219.0.10.54] [JP]
ns2.value-domain.com. [210.153.116.18] [JP]
ns3.value-domain.com. [59.106.14.70] [JP]</pre>

<p>COMドメインなどeNomで取得したドメインの場合:</p>

<pre>dns1.name-services.com. [69.25.142.1] [US]
dns2.name-services.com. [216.52.184.230] [US]
dns3.name-services.com. [63.251.92.193] [US]
dns4.name-services.com. [64.74.96.242] [US]
dns5.name-services.com. [212.118.243.118] [UK]</pre>

<p>のネームサーバを利用します。<br />
[<strong>DNS チェックサイト</strong>]<br />
&#160;&#160;<a href="http://www.dnsreport.com/">http://www.dnsreport.com/</a><br />
&#160;&#160;<a href="http://www.squish.net/dnscheck/">http://www.squish.net/dnscheck/</a><br />
&#160;&#160;<a href="http://www.zonecheck.fr/">http://www.zonecheck.fr/</a></p>

<p>などで頻繁にネームサーバのレスポンスをチェックしてみると、ときに</p>

<blockquote>ERROR: Some of your nameservers listed at the parent nameservers <font color="red">did not respond</font>. The ones that did not respond are: ****</blockquote>

<p>と、１つだけ(1/5台 or 1/3台)レスポンスがないため、 [<font color="red">fail</font>] と表示されることがあります。<br />
Xrea.com さんのサーバ以外では、最大２つのネームサーバ nameserver のことが多いようですが、１台は 常に response がなく、実際にはプライマリーだけで運用しているサーバも見かけます(市役所などの公的機関を含む）。<br />
<u>RFC2182 section 5 recommends <strong>at least 3 nameservers.</strong></u></p>]]>

</content>
</entry>
<entry>
<title>WinSCP rbash</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000064.html" />
<modified>2005-07-20T00:06:29Z</modified>
<issued>2005-07-20T00:01:12Z</issued>
<id>tag:shellscript.biz,2005://1.64</id>
<created>2005-07-20T00:01:12Z</created>
<summary type="text/plain">WinSCP は クライアント OS Windows のためのオープンソース・ソフトウェアで、version 3.0以降では、SCP (Secure Copy Protocol)と SFTP (SSH File Transfer Protocol)の２つのプロトコルを利用できます。 &amp;#160;&amp;#160;http://winscp.net/eng/docs/protocols/ 最新バージョン(2005/7/20現在): WinSCP Version 3.7.4(Build 271) Released: 2005-02-10 WinSCPをインストールし、Xrea.com さんの SSHサーバ (Linux)にリモートアクセスするときの注意事項: (1) SSH接続で使用できる Shellは制限シェル rbash ですが、WinSCP設定 [Environment SCP] では、 &amp;#160;&amp;#160;Shell ● Default ○ Enter...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p><a href="http://winscp.net/">WinSCP</a> は クライアント OS Windows のためのオープンソース・ソフトウェアで、version 3.0以降では、SCP (Secure Copy Protocol)と SFTP (SSH File Transfer Protocol)の２つのプロトコルを利用できます。<br />
&#160;&#160;<a href="http://winscp.net/eng/docs/protocols/">http://winscp.net/eng/docs/protocols/</a><br />
最新バージョン(2005/7/20現在):<br />
WinSCP Version 3.7.4(Build 271) Released: 2005-02-10<br />
WinSCPをインストールし、<strong>Xrea.com さんの SSHサーバ (Linux)</strong>にリモートアクセスするときの注意事項:</p>

<p>(1) SSH接続で使用できる Shellは制限シェル rbash ですが、WinSCP設定 [Environment SCP] では、<br />
&#160;&#160;Shell ● Default ○ Enter<br />
<strong>Default を選択します</strong>。もし、<br />
<u>Environment SCP Shell ○ Default ● <font color="blue">Enter /bin/rbash</font></u><br />
と、rbash を指定すると、</p>

<blockquote>Connection has been unexpectedly closed. Server sent command exit status 0.</blockquote>

<p>サーバ側からの exitコマンドにより接続終了となります。<br />
エントリー「rbash - restricted shell」<br />
&#160;&#160;<a href="http://shellscript.biz/archives/000057.html">http://shellscript.biz/archives/000057.html</a><br />
(2) SSH 2 (プロトコル バージョン 2.0) によるSCPプロトコルもサポートされています。</p>

<pre>SSH protocol version: 2
SSH implementation: OpenSSH_3.8p1
Encryption algorithm: AES (SSH 2 only)
File transfer protocol: SCP</pre>

<p>(3) command を使用するとき、SCP プロトコルによる接続を選択します。<br />
File transfer protocolとして、SFTP を選択すると、コマンドは一切使用できません。</p>

<blockquote>Current SFTP(v3) session does not command you request. Separate shell session may be opened to process the command. Do you want to open separete sell session?</blockquote>

<p>また、SFTP プロトコルによるリモートアクセスは可能ですが、exitコマンドにより直ちに接続終了となります。</p>

<blockquote>Connection has been unexpectedly closed. <strong>Server sent command exit</strong> status 0.</blockquote>]]>

</content>
</entry>
<entry>
<title>PostgreSQL と UNICODE</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000063.html" />
<modified>2005-07-11T07:04:13Z</modified>
<issued>2005-07-11T06:56:32Z</issued>
<id>tag:shellscript.biz,2005://1.63</id>
<created>2005-07-11T06:56:32Z</created>
<summary type="text/plain">データベース PostgreSQL 新規作成時、文字コード選択: EUC-JP or UNICODE 可能となっています。１つのID でサーバ内に５つ設置できます。 エントリー:&amp;#160;「Movable Typeでは Unicode (UTF-8) or EUC-JP (日本語 Extended Unix Code)?」 Movable Type などのブログで、RSSやAtom に対応しなかった問題が解決するはずです。...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>データベース PostgreSQL 新規作成時、文字コード選択: <strong>EUC-JP or <font color="red">UNICODE</font></strong> 可能となっています。１つのID でサーバ内に５つ設置できます。<br />
エントリー:&#160;「<a href="http://shellscript.biz/archives/000023.html">Movable Typeでは Unicode (UTF-8) or EUC-JP (日本語 Extended Unix Code)?</a>」<br />
Movable Type などのブログで、RSSやAtom に対応しなかった問題が解決するはずです。</p>]]>

</content>
</entry>
<entry>
<title>問題解決:MT 3.17と AdminCGIPath https+複数パス</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000062.html" />
<modified>2005-06-29T03:49:44Z</modified>
<issued>2005-06-29T03:34:40Z</issued>
<id>tag:shellscript.biz,2005://1.62</id>
<created>2005-06-29T03:34:40Z</created>
<summary type="text/plain">Movable Type 3.17-ja, 3.17(3.16)-en_US では、App.pm を下記のように編集することにより、 mt.cfg AdminCGIPath https://ss1.xrea.com/ユーザーID.s*.xrea.com/複数path/to/MT_DIR/mt.cgi へのアクセスでは、 ScriptURI = &apos;/ユーザーID.s*.xrea.com/複数path/to/MT_DIR/mt.cgi&apos; と正しくなります。 AdminCGIPath http://ユーザーID.s*.xrea.com/MT_DIR/mt.cgi へのアクセスでは、 ScriptURI = &apos;/MT_DIR/mt.cgi&apos; となります。 [MT]/lib/MT/App.pm の変更行 597行目あたりの サブルーチン sub app_path if ($path =~ m!^https?://[^/]+(/?.*)$!i) { $path = $1; } elsif (!$path) { $path...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>ブログ blog</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>Movable Type 3.17-ja, 3.17(3.16)-en_US では、App.pm を下記のように編集することにより、<br />
<u><font color="blue">mt.cfg</font></u><br />
<strong>AdminCGIPath</strong> ht<!--&#160;-->tp<font color="red">s</font>://ss1.xrea.com/ユーザーID.s*.xrea.com/複数path/to/MT_DIR/mt.cgi<br />
へのアクセスでは、<br />
ScriptURI = '/ユーザーID.s*.xrea.com/複数path/to/MT_DIR/mt.cgi' と正しくなります。<br />
<strong>AdminCGIPath</strong> ht<!--&#160;-->tp://ユーザーID.s*.xrea.com/MT_DIR/mt.cgi<br />
へのアクセスでは、<br />
ScriptURI = '/MT_DIR/mt.cgi' <br />
となります。</p>

<p><u><strong>[MT]/lib/MT/App.pm の変更行</strong></u><br />
597行目あたりの サブルーチン <strong>sub app_path</strong></p>

<pre>    if ($path =~ m!^https?://[^/]+(/?.*)$!i) {
        $path = $1;
    } elsif (!$path) {
        $path = '/';
}</pre>

<p>を下記のように変更します。</p>

<pre>    if ($path =~ m!^https?://[^/]+(/?.*)$!i) {
<font color="red">    if ($ENV{REMOTE_ADDR} eq '192.168.1.xyz')</font>
<font color="red">    { $path = '/ユーザーID.s*.xrea.com/複数path/to/MT_DIR/';}</font>
<font color="blue">    else { $path = $1;}</font>
    } elsif (!$path) {
        $path = '/';
}</pre>

<p>Xrea.com さんのサーバでは、環境変数 HTTPS の on, off を取得できませんので、HTTPS によるアクセスは<u>特定のローカル IP経由である</u>ことを利用し、環境変数 $ENV{REMOTE_ADDR}による条件文としました。サーバ名 (例: s150)には、ローカルなIPアドレスが設定されています (例: xyz=50であれば, 192.168.1.50) 。</p>

<p><font color="red">注</font>) ブログそのものは httpプロトコルで運用します。CGIPath, AdminCGIPath ともに https ではエラーが発生する可能性があります。</p>]]>

</content>
</entry>
<entry>
<title>MT 3.17の問題点:AdminCGIPath, SSLサーバ( https プロトコル)</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000061.html" />
<modified>2005-06-29T03:34:08Z</modified>
<issued>2005-06-26T02:42:02Z</issued>
<id>tag:shellscript.biz,2005://1.61</id>
<created>2005-06-26T02:42:02Z</created>
<summary type="text/plain">Movable Type 3.17-ja を Xrea.com さんのサーバにインストールすると、AdminCGIPath は SSL サーバ (サーバ名 ss1) 経由で利用できません。 [追記 2005/6/29] Movable Type 3.17-ja (デフォルト)のインストールで発生するこの問題点は Xrea.com さんのサーバでは解決しました。 &amp;#160;&amp;#160;エントリー「問題解決:MT 3.17とAdminCGIPath https+複数パス」 &amp;#160;&amp;#160;&amp;#160;&amp;#160;http://shellscript.biz/archives/000062.html Movable Type (MT) 設定ファイル mt.cfg の中で、MT のベーシック・ディレクトリ (仮に MT_DIR とします) にある mt.cgi までの パス( PATH )を指定します。...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>ブログ blog</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>Movable Type 3.17-ja を Xrea.com さんのサーバにインストールすると、<strong>AdminCGIPath</strong> は SSL サーバ (サーバ名 ss1) 経由で利用できません</strong>。<br />
[追記 2005/6/29] Movable Type 3.17-ja (デフォルト)のインストールで発生するこの問題点は Xrea.com さんのサーバでは解決しました。</p>

<p>&#160;&#160;エントリー「問題解決:MT 3.17とAdminCGIPath https+複数パス」<br />
&#160;&#160;&#160;&#160;<a href="http://shellscript.biz/archives/000062.html"><strong>http://shellscript.biz/archives/000062.html</strong></a></p>

<p>Movable Type (MT) 設定ファイル mt.cfg の中で、MT のベーシック・ディレクトリ (仮に MT_DIR とします) にある mt.cgi までの パス( PATH )を指定します。</p>

<blockquote>CGIPath http://www.example.com/path/to/MT_DIR/<br />CGIPath https://www.example.com/path/to/MT_DIR/</blockquote>

<p>形式は、ht<!--&#160;-->tp://, ht<!--&#160;-->tps:// で始まる「絶対 URL」です。ドメイン・ルートからの経路 (PATH) をすべて指定します。CGIPathであれば、PATH の数 (階層) には制限はありませんが、下記のように、mt.cgi のみ異なる URL で運用するとき (セキュリティ対策等のため、<strong>AdminCGIPath</strong> 利用時) 、</p>

<pre><font color="red">MT 3.17-ja</font>
MT 3.16-us
MT 3.17-us</pre>

<p>では、</p>

<blockquote>AdminCGIPath ht<!--&#160;-->tps://ss1.xrea.com/ユーザーID.s*.xrea.com/www.example.com/path/to/MT_DIR/ [設定<strong>不可</strong>]<br />AdminCGIPath ht<!--&#160;-->tps://ss1.xrea.com/ユーザーID.s*.xrea.com/www.example.com/MT_DIR/ [設定<strong>不可</strong>]<br />AdminCGIPath ht<!--&#160;-->tp://ユーザーID.s*.xrea.com/www.example.com/MT_DIR/ [設定<strong>不可</strong>]<br />AdminCGIPath ht<!--&#160;-->tp://ユーザーID.s*.xrea.com/path/to/MT_DIR/ [設定<strong>不可</strong>]<br />AdminCGIPath <strong>ht<!--&#160;-->tp://ユーザーID.s*.xrea.com/MT_DIR/ [設定可]</strong><br />AdminCGIPath <strong>ht<!--&#160;-->tp<font color="red">s</font>://www.example.com/MT_DIR/ [設定可]</strong></blockquote>

<p>となるようです。つまり、<strong>Xrea.com さんのサーバでは、必ず、ドメイン・ルート直下のMT_DIRにMTをインストールし、AdminCGIPath は SSL サーバ (サーバ名 ss1)を経由しないPATHとします。</strong>。MT 3.15-ja では、SSL サーバ (サーバ名 ss1) 経由など可能でしたので、セキュリティ上、とても残念なことです。</p>]]>

</content>
</entry>
<entry>
<title>不正な ScriptURI : MT3.17, 3.16 / App.pm</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000060.html" />
<modified>2005-06-29T03:51:58Z</modified>
<issued>2005-06-23T03:24:15Z</issued>
<id>tag:shellscript.biz,2005://1.60</id>
<created>2005-06-23T03:24:15Z</created>
<summary type="text/plain">[追記 2005/6/29] Movable Type 3.17-ja (デフォルト)のインストールで発生するこの問題点は Xrea.com さんのサーバでは解決しました。 &amp;#160;&amp;#160;エントリー「問題解決:MT 3.17とAdminCGIPath https+複数パス」 &amp;#160;&amp;#160;&amp;#160;&amp;#160;http://shellscript.biz/archives/000062.html Xrea.com さんのサーバご利用の方は、エントリー: 「AdminCGIPath と SSLサーバ (https プロトコル)」 &amp;#160;&amp;#160;http://shellscript.biz/archives/000061.html もご覧下さい。 Movable Type 3.17-ja では、AdminCGIPath を利用したとき、ウェブログの管理画面の ScriptURI (の PATH) は下記のように不正となります。 TMPL_VAR NAME=SCRIPT_URL の右辺に問題があります。 【CONFIGURATION SETTINGS】 &amp;#160;&amp;#160;&amp;#160;http://www.sixapart.com/movabletype/docs/mtmanual_configuration.html#configuration%20settings mt.cfg CGIPath AdminCGIPath Examples:...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>ブログ blog</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>[追記 2005/6/29] Movable Type 3.17-ja (デフォルト)のインストールで発生するこの問題点は Xrea.com さんのサーバでは解決しました。</p>

<p>&#160;&#160;エントリー「問題解決:MT 3.17とAdminCGIPath https+複数パス」<br />
&#160;&#160;&#160;&#160;<a href="http://shellscript.biz/archives/000062.html"><strong>http://shellscript.biz/archives/000062.html</strong></a></p>

<p>Xrea.com さんのサーバご利用の方は、エントリー:<br />
「AdminCGIPath と SSLサーバ (https プロトコル)」<br />
&#160;&#160;<a href="http://shellscript.biz/archives/000061.html">http://shellscript.biz/archives/000061.html</a><br />
もご覧下さい。<br />
Movable Type 3.17-ja では、<font color="blue">AdminCGIPath</font> を利用したとき、ウェブログの管理画面の ScriptURI (の PATH) は下記のように不正となります。<br />
<strong>TMPL_VAR NAME=SCRIPT_URL</strong> の右辺に問題があります。</p>

<p>【CONFIGURATION SETTINGS】<br />
&#160;&#160;&#160;<a href="http://www.sixapart.com/movabletype/docs/mtmanual_configuration.html#configuration%20settings">http://www.sixapart.com/movabletype/docs/mtmanual_configuration.html#configuration%20settings</a><br />
<strong>mt.cfg</strong> <br />
<u>CGIPath</u><br />
<u>AdminCGIPath</u><br />
Examples:</p>

<blockquote>CGIPath ht<!--&#160;-->tp://www.example.com/path/to/mt/<br />
AdminCGIPath htt<!--&#160;-->ps://www.example.com/path/to/mt/</blockquote>

<p>【MT 管理画面　ログイン・ページ】</p>

<pre><strong>MT version 3.17-ja</strong>
ScriptURI = '<strong><font color="red">/to/mt/mt.cgi</font></strong>';
ScriptBaseURI = '';
StaticURI = '/path/to/mt/';
&#160;
<strong>MT version 3.15-ja</strong>
ScriptURI = '/path/to/mt/mt.cgi';
ScriptBaseURI = '';
StaticURI = '/path/to/mt/';</pre>

<p>【MT 管理画面　メニュー・ページ】</p>

<pre><strong>MT version 3.17-ja</strong>
ScriptURI = '<strong><font color="red">/mt/mt.cgi</font></strong>';
ScriptBaseURI = '';
StaticURI = '/path/to/mt/';
&#160;
<strong>MT version 3.15-ja</strong>
ScriptURI = '/path/to/mt/mt.cgi';
ScriptBaseURI = '';
StaticURI = '/path/to/mt/';</pre>

<p>[2006.02.2005]<br />
<strong>Changed files in MT 3.17</strong><br />
&#160;&#160;&#160;<a href="http://www.sixapart.com/pronet/weblog/2005/06/changed_files_i.html">http://www.sixapart.com/pronet/weblog/2005/06/changed_files_i.html</a></p>

<pre>lib/MT.pm 
lib/MT/App.pm 
lib/MT/App/CMS.pm 
lib/MT/Plugin.pm 
lib/MT/Template/Context.pm 
mt-db2sql.cgi 
php/mt.php 
plugins/nofollow/README.txt 
plugins/nofollow/nofollow.pl 
plugins/nofollow/tmpl/nofollow.tmpl 
tmpl/cms/edit_comment.tmpl</pre>

<p>(一部のみ引用しました) <br />
[追記 2005/6/23]<br />
上記のファイルを調査を行ったところ、[MT]/lib/MT/<strong>App.pm</strong> 2005年作成版 が原因でした。<br />
<u>MT315-ja: App.pm,v 1.119.2.1 2004/10/06 22:46:46</u><br />
ScriptURI は正常な URLとなりますが, 旧バージョンのため、</p>

<pre>Error loading : syntax error at (eval 10) line 1, at EOF</pre>

<p>と表示され、管理画面は作動しません。以下のバージョンでは、すべて異常な ScriptURIとなります。</p>

<pre>MT316-us: App.pm 10862 2005-04-01 01:33:56Z
MT317-us: App.pm 12790 2005-06-02 15:57:42Z
MT317-ja: App.pm 12790 2005-06-02 15:57:42Z</pre>

<p>[追記 2005/6/26]<br />
MT 3.17-ja の管理画面を AdminCGIPath  ht<!--&#160;-->tp://独自ドメイン/mt/mt.cgi で運用すると、SCRIPT_URL のPATH 不具合は発生しません。しかし、 AdminCGIPath ht<!--&#160;-->tp://複数の階層/mt/mt.cgi (または, AdminCGIPath ht<!--&#160;-->tps://複数の階層/mt/mt.cgi) にすると、エントリー、ウェブログの設定、サイトの再構築などのリンクは、URLのPATHが１階層短縮されるためアクセス不能となり、メイン・メニュー、ログアウトなどのリンクをクリックすると、ログイン・ページにリダイレクトされるなど、ブログのURL以外はすべて不正となります。大幅に変更された [MT]/lib/MT/App.pm ファイル内に問題がありそうです。</p>]]>

</content>
</entry>
<entry>
<title>phpPgAdmin / phpMyAdmin</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000059.html" />
<modified>2005-06-19T02:30:56Z</modified>
<issued>2005-06-19T01:16:34Z</issued>
<id>tag:shellscript.biz,2005://1.59</id>
<created>2005-06-19T01:16:34Z</created>
<summary type="text/plain">Xrea.com さんのサーバでは、データベース MySQL, PostgreSQL を複数同時使用できます。両DBをリモートで管理するデータベース補助プログラム (それぞれ) phpPgAdmin, phpMyAdmin も管理画面で簡単に自動インストールできます。 しかし、絶対パス /virtual/ユーザーID/public_html/log/ 内にデフォルトで設定される .htpasswd, .htaccess ファイル はごくシンプルなものです。たとえば、Basic認証情報は、【 ユーザー名:ユーザーID, パスワード:****(4桁) 】です。 つまり、ユーザーID　は、オリジナルドメインの運用でなければ、だれでも URL から読み取ることができます。パスワードは、ユーザー管理用パスワード 12桁 ************ の 上4桁(文字)です。暗号強度は、決して安全なものではありません。 しかも、このパスワードがクラッキングされると、ユーザー管理用パスワード 12文字をマスク法でクラッキングできますので、暗号強度は 8桁 (12桁-4桁) に著しく低下します。 &amp;#160;&amp;#160;&amp;#160;&amp;#160;http://tokyo-pax.co.jp/200207.htm また、phpPgAdmin, phpMyAdmin にログインする際、.htaccess ファイル は http:// のアクセスも可能となっていますので、「オンラインパスワードクラッキング」ツールなどが利用されると、とても危険です。 参照ページ:...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>Xrea.com さんのサーバでは、データベース MySQL, PostgreSQL を複数同時使用できます。両DBをリモートで管理するデータベース補助プログラム (それぞれ) phpPgAdmin, phpMyAdmin も管理画面で簡単に自動インストールできます。<br />
しかし、絶対パス /virtual/ユーザーID/public_html/log/ <br />
内にデフォルトで設定される .htpasswd, .htaccess ファイル はごくシンプルなものです。たとえば、Basic認証情報は、【 ユーザー名:<strong>ユーザーID</strong>, パスワード:<strong>****(4桁)</strong> 】です。<br />
つまり、<strong>ユーザーID</strong>　は、オリジナルドメインの運用でなければ、だれでも URL から読み取ることができます。パスワードは、ユーザー管理用パスワード 12桁  <font color="blue">****</font>******** の 上4桁(文字)です。暗号強度は、決して安全なものではありません。<br />
しかも、このパスワードがクラッキングされると、ユーザー管理用パスワード 12文字をマスク法でクラッキングできますので、暗号強度は 8桁 (12桁-4桁) に著しく低下します。<br />
&#160;&#160;&#160;&#160;<a href="http://tokyo-pax.co.jp/200207.htm">http://tokyo-pax.co.jp/200207.htm</a></p>

<p>また、phpPgAdmin, phpMyAdmin にログインする際、.htaccess ファイル は htt<!--&#160;-->p:// のアクセスも可能となっていますので、「オンラインパスワードクラッキング」ツールなどが利用されると、とても危険です。<br />
参照ページ:<br />
&#160;&#160;&#160;&#160;<a href="http://akademeia.info/main/lecture1/tokubetu_online_password_cracking.htm">http://akademeia.info/main/lecture1/tokubetu_online_password_cracking.htm</a></p>

<p>絶対パス /virtual/ユーザーID/public_html/log/ には、ログ閲覧のページも含まれます(ただし、管理画面で有効とした時に限ります)。<br />
よって、暗号強度をより安全なものにするための対策として、ドットファイル <strong>.htaccess / .htpasswd</strong> を以下のように変更します。</p>

<p>(1) 「ユーザー名」を【ユーザーID】以外に変更し、パスワードは Xrea.com さんの linux サーバで許可されている <strong>8 桁</strong>のランダムな英数字 (大小英文字, 数字の組み合わせなど) に変更する。<br />
検索サイトにて、キーワード「<u>パスワード生成ツール</u> <u>htpasswd</u>」を入力すると、オンラインで htpasswd用の暗号化パスワードを自動生成するサイトがいくつもヒットします。<br />
他の参照ページ: <br />
&#160;&#160;<strong>&middot;</strong>&#160;「ＢｏｏＣＧＩプログラム」<br />
&#160;&#160;&#160;&#160;<a href="http://www.booboo.ne.jp/contents/cgi/program/limit/index.html">http://www.booboo.ne.jp/contents/cgi/program/limit/index.html</a><br />
&#160;&#160;&#160;&#160;<a href="http://www.booboo.ne.jp/contents/cgi/program/limit/bpcl/bpcl.pl">http://www.booboo.ne.jp/contents/cgi/program/limit/bpcl/bpcl.pl</a><br />
参照サイトでは、アクセス制限cgi はリンクウエアで提供されています。また、商用サイトでの使用が禁止されていますので、主催者のページをよくご覧下さい。</p>

<p>Apache を利用した自サーバであれば、<strong>htpasswd コマンド に -m オプション</strong> を使用すれば、9桁以上の長いパスワードが作成できます (<font color="red">注</font>: Xrea.com さんのサーバにSSH接続すると利用できる 制限シェル( <strong>rbash</strong> ) は htpasswd コマンドを許可していません)。<br />
&#160;&#160;<strong>&middot;</strong>&#160;「ok24.jp - 技術ドキュメント Apache：htpasswd コマンド」<br />
&#160;&#160;&#160;&#160;<a href="http://www.ok24.jp/tech/apache_htpasswd.html">http://www.ok24.jp/tech/apache_htpasswd.html</a></p>

<p>(2) phpPgAdmin, phpMyAdmin (および、ログ閲覧) は htt<!--&#160;-->ps:// のみのアクセスとする。<br />
Xrea.com さんのサーバでは、.htaccess 内に</p>

<blockquote>Order deny,allow<br />Deny from all<br />Allow from 192.168.1 219.101.229</blockquote>

<p>を追記し、アクセスの URL は、<br />
&#160;&#160;&#160;&#160;<a href="http://sb.xrea.com/showthread.php?&threadid=6646">http://sb.xrea.com/showthread.php?&threadid=6646</a><br />
を参照します。<br />
<strong>http<!--&#160--><font color="red">s</font>://<font color="blue">ss1.xrea.com/</font>ユーザーID.s***.xrea.com/log/phpmyadmin/</strong><br />
暗号強度 128bit のSSL通信のみ許可しますので、クラッキングのためには、暗号強度 128bitで 8桁パスワードを解読することになりますが、Basic認証のユーザー名は変更されていますので、「ユーザーID」ではアクセスできません。<br />
なお、念のため(ブラウザからドットファイルに直接アクセスされないように)、.htaccess 内に</p>

<pre>
&lt;FilesMatch &quot;^\.(htaccess|htpasswd|htgroup)$&quot;&gt;
        Order deny,allow
        Deny from all
    &lt;/FilesMatch&gt;</pre>

<p>を追記します。</p>

<p><strong>固定リンク（関連エントリ):</strong><br />
&#160;&#160;<strong>&middot;</strong>&#160;「SSLで暗号化すべきウエブページが http でアクセスできる」<br />
&#160;&#160;&#160;&#160;<a href="http://www.osbsd.net/archives/000082.php">http://www.osbsd.net/archives/000082.php</a><br />
&#160;&#160;<strong>&middot;</strong>&#160;「パスワードの暗号強度」<br />
&#160;&#160;&#160;&#160;<a href="http://k-12.be/notes/000088.php">http://k-12.be/notes/000088.php</a><br />
&#160;&#160;<strong>&middot;</strong>&#160;.htaccess ファイルにより SSL 接続のみ許可する方法<br />
&#160;&#160;&#160;&#160;<a href="http://shellscript.biz/archives/000041.html">http://shellscript.biz/archives/000041.html</a><br />
&#160;&#160;&#160;&#160;</p>]]>

</content>
</entry>
<entry>
<title>Perl コマンドラインスイッチ -w</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000058.html" />
<modified>2005-05-25T03:02:53Z</modified>
<issued>2005-05-25T02:58:33Z</issued>
<id>tag:shellscript.biz,2005://1.58</id>
<created>2005-05-25T02:58:33Z</created>
<summary type="text/plain">-w フラグ -w コマンドラインスイッチ Command Line flags ともいいます。 例) #!/usr/local/bin/perl -w デバッグ関係の switch の１つで、perl スクリプトにエラーの可能性があれば警告 (オプショナル Optional warning) を出力します。 このように警告メッセージをオンにしたとき、チェックする変数、識別子の内容は、 &amp;#160;&amp;#160;「日本語 perl texinfo」 &amp;#160;&amp;#160;&amp;#160;&amp;#160;http://adlib.rsch.tuis.ac.jp/~akira/lect/jperlman/perl.html#SEC22 に詳しく記述されています。 このフラグはPerlに警告を出力するだけのようですが、Xrea.com さんのサーバ上で Encode.pm を利用するとき、削除をおすすめいたします。 &amp;#160;&amp;#160;エントリー「Encode.pm and Movable Type」 &amp;#160;&amp;#160;&amp;#160;&amp;#160;http://shellscript.biz/archives/000036.html なお、通常は pragma (コンパイラへの指令) の間違いをなくするためにも use strict;&amp;#160;&amp;#160;&amp;#160;「未宣言の変数を使用できなくする」...</summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>-w フラグ<br />
-w コマンドラインスイッチ<br />
Command Line flags ともいいます。<br />
例) #!/usr/local/bin/perl <strong>-w</strong></p>

<p>デバッグ関係の switch の１つで、perl スクリプトにエラーの可能性があれば警告 (オプショナル Optional warning) を出力します。<br />
このように警告メッセージをオンにしたとき、チェックする変数、識別子の内容は、<br />
&#160;&#160;「日本語 perl texinfo」<br />
&#160;&#160;&#160;&#160;<a href="http://adlib.rsch.tuis.ac.jp/~akira/lect/jperlman/perl.html#SEC22">http://adlib.rsch.tuis.ac.jp/~akira/lect/jperlman/perl.html#SEC22</a><br />
に詳しく記述されています。<br />
このフラグはPerlに警告を出力するだけのようですが、Xrea.com さんのサーバ上で Encode.pm を利用するとき、削除をおすすめいたします。<br />
&#160;&#160;エントリー「Encode.pm and Movable Type」<br />
&#160;&#160;&#160;&#160;<a href="http://shellscript.biz/archives/000036.html">http://shellscript.biz/archives/000036.html</a></p>

<p>なお、通常は pragma (コンパイラへの指令) の間違いをなくするためにも<br />
<strong>use strict;</strong>&#160;&#160;&#160;「未宣言の変数を使用できなくする」<br />
と-w コマンドラインスイッチは、同時に使用することが推奨されます。<br />
&#160;&#160;&#160;&#160;<a href="http://www001.upp.so-net.ne.jp/monpe/2003/200303050.html">http://www001.upp.so-net.ne.jp/monpe/2003/200303050.html</a></p>]]>

</content>
</entry>
<entry>
<title>rbash - restricted shell</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000057.html" />
<modified>2005-08-30T21:55:15Z</modified>
<issued>2005-05-25T02:18:17Z</issued>
<id>tag:shellscript.biz,2005://1.57</id>
<created>2005-05-25T02:18:17Z</created>
<summary type="text/plain"><![CDATA[リモートからSSH接続し、Xrea.com さんのサーバー管理に利用できるシェルは 制限付きのシェル(制限シェル) restricted shell rbash です。 管理メニュー「ホスト情報登録」&#8658; SSH登録&#160;&middot;&#160;SSHシェルはデータベース操作の時のみお使い下さい。 [2005/8/31 追記] SSH接続時の制限緩和(仮)について(2005/06/22) &#160;&#160;http://sb.xrea.com/showthread.php?t=9700 実験的な制限緩和「・・・基本的に通常のシェル機能がほぼすべてご利用いただけます・・・」中とのことです。 &#160;&#160;「Manpage of BASH」 &#160;&#160;&#160;&#160;http://www.linux.or.jp/JM/html/GNU_bash/man1/bash.1.html の中に「制限付きのシェル(RESTRICTED SHELL)」の翻訳がありますので、全文引用させていただきます。原文として、 &#160;&#160;&#160;&#160;http://www.network-theory.co.uk/docs/bashref/bashref_68.html を引用・対比し、強調個所は当方で追記した文章です。 === Bash を rbash という名前で起動した場合や、起動時に --restricted または -r オプションを指定した場合には、シェルは制限された状態になります。制限付きのシェルは、標準のシェルよりも細かく制御された環境を設定したいときに用います。制限付きのシェルは bash と全く同じように動作しますが、以下のようなことが許可されなかったり実行されなかったりします: If Bash is started with the name...]]></summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>リモートからSSH接続し、Xrea.com さんのサーバー管理に利用できるシェルは 制限付きのシェル(制限シェル) restricted shell <strong>rbash</strong> です。</p>

<blockquote>管理メニュー「ホスト情報登録」&#8658; <font color="red">SSH登録</font><br />&#160;&middot;&#160;<strong>SSHシェルはデータベース操作の時のみお使い下さい。</strong></blockquote>

<p>[2005/8/31 追記] <u>SSH接続時の制限緩和(仮)について</u>(2005/06/22)<br />
&#160;&#160;<a href="http://sb.xrea.com/showthread.php?t=9700">http://sb.xrea.com/showthread.php?t=9700</a><br />
実験的な制限緩和「・・・基本的に通常のシェル機能がほぼすべてご利用いただけます・・・」中とのことです。</p>

<p>&#160;&#160;「Manpage of BASH」<br />
&#160;&#160;&#160;&#160;<a href="http://www.linux.or.jp/JM/html/GNU_bash/man1/bash.1.html">http://www.linux.or.jp/JM/html/GNU_bash/man1/bash.1.html</a><br />
の中に「制限付きのシェル(RESTRICTED SHELL)」の翻訳がありますので、全文引用させていただきます。原文として、<br />
&#160;&#160;&#160;&#160;<a href="http://www.network-theory.co.uk/docs/bashref/bashref_68.html">http://www.network-theory.co.uk/docs/bashref/bashref_68.html</a><br />
を引用・対比し、強調個所は当方で追記した文章です。</p>

<p>===<br />
Bash を rbash という名前で起動した場合や、起動時に <strong>--restricted</strong> または -r オプションを指定した場合には、シェルは制限された状態になります。制限付きのシェルは、標準のシェルよりも細かく制御された環境を設定したいときに用います。制限付きのシェルは bash と全く同じように動作しますが、以下のようなことが許可されなかったり実行されなかったりします:<br />
If Bash is started with the name rbash, or the --restricted or -r option is supplied at invocation, the shell becomes restricted. A restricted shell is used to set up an environment more controlled than the standard shell. A restricted shell behaves identically to bash with the exception that the following are disallowed or not performed: </p>

<p>● cd を使ってディレクトリを変更すること <br />
Changing directories with the cd builtin. </p>

<p>● SHELL, PATH, ENV, BASH_ENV の値の設定や設定取り消しを行なうこと<br />
Setting or unsetting the values of the SHELL, PATH, ENV, or BASH_ENV variables. </p>

<p>● / を含むコマンド名を指定すること <br />
Specifying command names containing slashes. </p>

<p>● 組み込みコマンド . の引き数として / を含むファイル名を指定すること<br />
Specifying a filename containing a slash as an argument to the . builtin command. </p>

<p>● 組み込みコマンド hash に対するオプション -p の引数として / を含むファイル名を指定すること <br />
Specifying a filename containing a slash as an argument to the -p option to the hash builtin command. </p>

<p>● 起動時にシェル環境から関数定義をインポートすること <br />
Importing function definitions from the shell environment at startup.<br />
 <br />
● 起動時にシェル環境から SHELLOPTS の値を展開すること <br />
Parsing the value of SHELLOPTS from the shell environment at startup.<br />
 <br />
● リダイレクション演算子 &gt;, &gt;|, &lt;&gt;, &gt;&amp;, &amp;&gt;, &gt;&gt; を使ってリダイレクトを行なうこと <br />
Redirecting output using the '&gt;', '&gt;|', '&lt;&gt;', '&gt;&amp;', '&amp;&gt;', and '&gt;&gt;' redirection operators. </p>

<p>● 組み込みコマンド exec を用いて、シェルを別のコマンドに置き換えること <br />
Using the exec builtin to replace the shell with another command. </p>

<p>● 組み込みコマンド enable に対する -f オプションと -d オプションを使って、組み込みコマンドを追加・削除すること <br />
Adding or deleting builtin commands with the -f and -d options to the enable builtin. </p>

<p>● <strong>利用できないシェルを使用可能とするために組み込みコマンド enable を使うこと</strong><br />
Using the enable builtin command to enable disabled shell builtins. </p>

<p>● 組み込みコマンド command に -p オプションを指定すること <br />
Specifying the -p option to the command builtin.</p>

<p>● set +r や set +o restricted を用いて制限モードを解除すること<br />
Turning off restricted mode with 'set +r' or 'set +o restricted'</p>

<p>これらの制限は、何らかの起動ファイルを読み込んだ後に適用されます。<br />
These restrictions are enforced after any startup files are read. </p>

<p>シェルスクリプトであると判明したファイルが実行された時(3.8 シェルスクリプトのセクションを参照)、rbash はスクリプトを実行するために立ち上げたシェルでは制限を全て無効にします。<br />
When a command that is found to be a shell script is executed (see section 3.8 Shell Scripts), rbash turns off any restrictions in the shell spawned to execute the script. </p>]]>

</content>
</entry>
<entry>
<title>Outbound Port25 Blocking</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000056.html" />
<modified>2005-04-26T01:13:09Z</modified>
<issued>2005-04-24T06:23:37Z</issued>
<id>tag:shellscript.biz,2005://1.56</id>
<created>2005-04-24T06:23:37Z</created>
<summary type="text/plain"><![CDATA[Outbound Port25 Blocking とは、インターネット接続に利用しているプロバイダー (ISP) の送信用メールサーバーを経由しないで、直接、他のサーバーのSMTPポート (Port25) へメールやウイルスが送信されることを遮断する&quot;利用制限・送信規制&quot;です。 国内のISPでは、 ぷららＷＡＫＷＡＫインターネット大阪ＳＡＮＮＥＴ さんなどがすでに導入しています。海外では一般化しているそうです。 他のSMTPサーバーが Submission ポート(Port 587), SMTP over SSL に対応していると、メールソフトの設定変更を行うだけで接続可能となります。 参照ページ: ＷＡＫＷＡＫさんの「Port25以外でのメール送信対応状況」 &#160;&#160&#160;&#160;http://www.wakwak.com/info/spec/port25/mail_group.html Xrea.com さんのSMTPサーバーは、上記参照ページにはありませんが、「SMTP over SSL対応」ですので、 &#160;&#160&#160;&#160;http://sb.xrea.com/showthread.php?t=9230 SSL通信用のポート(SMTPS 465)に変更します。...]]></summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>Outbound Port25 Blocking とは、インターネット接続に利用しているプロバイダー (ISP) の送信用メールサーバーを経由しないで、直接、他のサーバーのSMTPポート (Port25) へメールやウイルスが送信されることを遮断する&quot;利用制限・送信規制&quot;です。<br />
国内のISPでは、</p>

<blockquote><a href="http://www.plala.or.jp/access/living/releases/nr04_dec/0041207_01.html">ぷらら</a><br /><a href="http://www.wakwak.com/info/news/2005/port25blocking0107.html">ＷＡＫＷＡＫ</a><br /><a href="http://www.inet-osaka.or.jp/port25/outbound.htm">インターネット大阪</a><br /><a href="http://www.sannet.ne.jp/news/20050331-1.html">ＳＡＮＮＥＴ</a></blockquote>

<p>さんなどがすでに導入しています。海外では一般化しているそうです。<br />
他のSMTPサーバーが <strong>Submission ポート(Port 587)</strong>, <strong>SMTP over SSL</strong> に対応していると、メールソフトの設定変更を行うだけで接続可能となります。<br />
参照ページ: ＷＡＫＷＡＫさんの「Port25以外でのメール送信対応状況」<br />
&#160;&#160&#160;&#160;<a href="http://www.wakwak.com/info/spec/port25/mail_group.html">http://www.wakwak.com/info/spec/port25/mail_group.html</a><br />
Xrea.com さんのSMTPサーバーは、上記参照ページにはありませんが、「SMTP over SSL対応」ですので、<br />
&#160;&#160&#160;&#160;<a href="http://sb.xrea.com/showthread.php?t=9230">http://sb.xrea.com/showthread.php?t=9230</a><br />
SSL通信用のポート(SMTPS 465)に変更します。</p>]]>

</content>
</entry>
<entry>
<title>RAID1, RAID5, RAID0+1, RAID10</title>
<link rel="alternate" type="text/html" href="http://shellscript.biz/archives/000055.html" />
<modified>2005-04-17T07:59:13Z</modified>
<issued>2005-04-17T07:40:38Z</issued>
<id>tag:shellscript.biz,2005://1.55</id>
<created>2005-04-17T07:40:38Z</created>
<summary type="text/plain"><![CDATA[HDD上のデータを分散して記録し、高速化や安全性 (耐障害性) の向上をはかる方式 RAID (Redundant Arrays of Independent (or Inexpensive) Disks）は今では一般的ですが、Xrea.com さんのサーバでは、ハードウェア仕様 の一覧によると、主に RAID1 (ミラーリング) が使用されています。一部のサーバでは、RAID0+1, RAID10, RAID5 となっています。 以下にいくつかの用語解説ページを列記します。 &#160;&raquo;&#160;用語解説：RAID ～XREA SUPPORT by noihjp～ 「CPU, RAID」 &#160;&raquo;&#160;PRIMERGY &gt; 本製品のサポート&amp;ダウンロード &gt; FAQ &gt; RAID(一般的な質問) 回答 - FUJITSU Japan 「RAID1とRAID5ではどちらが良いか」 &#160;&raquo;&#160;RAID1/RAID5解説｜マネージドホスティング...]]></summary>
<author>
<name>mvtp</name>
<url>http://shellscript.biz/</url>
<email>support@shellscript.biz</email>
</author>
<dc:subject>Server</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://shellscript.biz/">
<![CDATA[<p>HDD上のデータを分散して記録し、高速化や安全性 (耐障害性) の向上をはかる方式 RAID (Redundant Arrays of Independent (or Inexpensive) Disks）は今では一般的ですが、Xrea.com さんのサーバでは、<a href="http://sb.xrea.com/showthread.php?&threadid=4443">ハードウェア仕様</a> の一覧によると、主に <strong>RAID1 (ミラーリング)</strong> が使用されています。一部のサーバでは、RAID0+1, RAID10, RAID5 となっています。</p>

<p>以下にいくつかの用語解説ページを列記します。<br />
&#160;&raquo;&#160;<a href="http://support.noihjp.com/RAID.php">用語解説：RAID ～XREA SUPPORT by noihjp～</a> 「CPU, RAID」<br />
&#160;&raquo;&#160;<a href="http://www.fmworld.net/biz/primergy/faq/raid_ans1.html">PRIMERGY &gt; 本製品のサポート&amp;ダウンロード &gt; FAQ &gt; RAID(一般的な質問) 回答 - FUJITSU Japan</a> 「RAID1とRAID5ではどちらが良いか」<br />
&#160;&raquo;&#160;<a href="http://highway.skytown.ne.jp/windows/hardware/raid.html">RAID1/RAID5解説｜マネージドホスティング HIGHWAY WINDOWS</a> 「RAIDキャッシュ」<br />
&#160;&raquo;&#160;<a href="http://www.atmarkit.co.jp/fpc/special/raidglossary/index.html">&#64;ITトップ特集 ： RAIDの基礎知識－RAIDレベルを理解しよう－</a>「RAID 50, ホットスワップ (hot-swap), ホットスペア (hot-spare)」<br />
&#160;&raquo;&#160;<a href="http://www.nzs.info/nzs/raid/raid.html">RAIDってナニ？</a> 「ソフトウェアRAID, ハードウェアRAID」<br />
&#160;&raquo;&#160;<a href="http://sanonosa.ameblo.jp/category-21babe53f9b10af4f4e93fe2e6f956f7.html">大規模サイトのシステム管理コラム集　＿(‥ )フーン</a> 「RAID01とRAID10の違い」<br />
&#160;&raquo;&#160;<a href="http://www.asahi-net.or.jp/~xb2h-ikd/PCword/word/RAID.htm">RAID（Redyndant Array of Independence Disks）</a> 「RAID0+1」</p>]]>

</content>
</entry>

</feed>