変奏現実

パソコンやMMORPGのことなどを思いつくまま・・・記載されている会社名・製品名・システム名などは、各社の商標、または登録商標です。

この画面は、簡易表示です

インターネット

i-googleガシェットから外部のサーバーのデータが読めない

数日前から

XMLファイルが読めなくなってたので、
エラーメッセージも出すようにしてみたら、
まともにエラってた。
理由は不明。
<Require feature=”opensocial-0.7″ />
を使ってたのが問題らしい。
問題が起きているガシェットのソースはこの辺。

function moejin_requestFile(fileName) {
  moejin_testMessageBox(‘moejin_requestFile’);
  var url = fileName;
  var params = {};
  moejin_testMessageBox(‘params start’);
  params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.DOM;
  moejin_testMessageBox(‘makeRequest start’);
  try {
    gadgets.io.makeRequest(url,moejin_response,params);
  } catch(e) {
    moejin_errorMessageBox(‘makeRequest error:’ + e);
  }
  moejin_testMessageBox(“Loading image file list.”);
}

エラーコンソールの内容から、
i-googleのページの
opensocial.DataRequest.prototype.newUpdatePersonAppDataRequest_09=opensocial.DataRequest.prototype.newUpdatePersonAppDataRequest;
のところに支障があるようだ。
ちなみに受信するデータ形式はDOMでもTEXTでも同じエラーなので、

今はgadgets.ioのmakeRequestは禁止らしい。

apacheの設定でGoogle USから見れないようにしてる可能性もあったけどログを見ると、
[18/Feb/2012:21:23:25 +0900] “GET /ig_gadgets/moejin.xml HTTP/1.1” 200 15645 “-” “Mozilla/5.0 (compatible) Feedfetcher-Google; (+http://www.google.com/feedfetcher.html)”
ちゃんと 読みに来ているから、データをJavaScriptに取り込む際に問題がありそう。



Radeon HD 7700

微妙な廉価版だ。
HD7950からコア数を30%まで減らすことで消費電力が80Wになり拡張電源コネクタも6PIN一個。
その割りに性能はHD6850のちょっと下なので、ゲーム中のHD6850グラボのファンがうるさいと思ってる人に良いだろう。
だが、そのうち出るHD7800シリーズがどうなのか判らないからやっぱり待ちかな。
一方下位のHD7750は消費電力が55Wまで下がっており久々の拡張電源コネクタが無いグラボになった。
同じくコネクタの無いHD6670よりかなり性能は高いハズなので買い替えにはピッタリかもしれない。
 
 



身近にある悪意のあるプログラム

 
そんなの知らない?
Windowsに圧縮(Zip形式)フォルダー
と云うのがありますよね。
メールにファイルを添付したりする時に便利です。
これがなかなかの曲者で、
この機能にはパスワードを付ける機能が無いので
ワザワザZIPパスワード付きのZIPファイルを作ってメールに添付したとしましょう。
ところがこのメールを受け取った人がZipファイルを解凍しようとすると、
なんとパスワードを聞かれずサクっと中身を開いてくれます。
良かれと思ってそうなっているのか、何かのライセンスの都合なのかは判りませんが、
世界中の大半の人にとっては、ZIPファイルにパスワードを付けても無駄なようにMSは努力しているようです。
ちなみにLinuxのunzipはちゃんとパスワード応答メッセージが出ますし、間違ったパスワードなら解凍しません。
ZIPファイル(パスワード付き)って多分パスワードが付いているだけで、そこを読み飛ばせば中身が見えるということを示すことで、より確実なセキュリティの実装の必要性を説いていると云えば通る世の中ですけどね。
そんなもん安易にSHA1で符号化しちまえばいいだけ。
WindowsもC++ならCrypto APIを用いて簡単に暗号化できます。
問題はどう簡単に復号するかです。安易な実装としては
復号プログラムを作って、その後ろに暗号化したデータをくっ付けて、
メールで送り、
相手にそのプログラムを実行したときに所定のパスワードでも入力してもらえばいいでしょう。
なぜ安易なのかというと、復号.exeなんて添付しようものなら
問答無用でサンドボックスに放り込まれ実行できても展開したファイルが開けなかったり、
~怪しいファイルが添付されていたので除去しました。~ ってメールを受信することになるからです。
それでも良い訳がないので、マシな実装を考えてくださいね。
Windowsの暗号化と復号のAPIについては、ここが参考になるでしょう。
リンク先には「サンプルコードの商業利用および転載を禁止します。」と書いてありますので、ここには掲載いたしません。



SWAP Over Fllow ~同接64なんて無理です~

ログを見ると
Feb 10 03:46:03 ssiscirine kernel: Out of memory: Kill process 1983 (clamd) score 35 or sacrifice child
Feb 10 03:47:47 ssiscirine kernel: Out of memory: Kill process 31369 (httpd) score 27 or sacrifice child
Feb 10 03:49:05 ssiscirine kernel: Out of memory: Kill process 21990 (httpd) score 27 or sacrifice child
Feb 10 03:53:27 ssiscirine kernel: Out of memory: Kill process 26774 (httpd) score 23 or sacrifice child
Feb 10 03:56:28 ssiscirine kernel: Out of memory: Kill process 24407 (httpd) score 22 or sacrifice child
Feb 10 04:15:37 ssiscirine kernel: Out of memory: Kill process 26782 (httpd) score 22 or sacrifice child
Feb 10 04:16:35 ssiscirine kernel: Out of memory: Kill process 31367 (httpd) score 22 or sacrifice child
Feb 10 04:17:59 ssiscirine kernel: Out of memory: Kill process 32525 (httpd) score 22 or sacrifice child
Feb 10 04:19:22 ssiscirine kernel: Out of memory: Kill process 20797 (httpd) score 22 or sacrifice child
Feb 10 04:19:46 ssiscirine kernel: Out of memory: Kill process 26759 (httpd) score 21 or sacrifice child
Feb 10 04:21:02 ssiscirine kernel: Out of memory: Kill process 27261 (httpd) score 21 or sacrifice child
Feb 10 04:22:36 ssiscirine kernel: Out of memory: Kill process 30144 (httpd) score 21 or sacrifice child
Feb 10 04:23:11 ssiscirine kernel: Out of memory: Kill process 31370 (httpd) score 21 or sacrifice child
Feb 10 04:24:25 ssiscirine kernel: Out of memory: Kill process 31371 (httpd) score 21 or sacrifice child
Feb 10 04:25:59 ssiscirine kernel: Out of memory: Kill process 31374 (httpd) score 21 or sacrifice child
Feb 10 04:26:00 ssiscirine kernel: Out of memory: Kill process 20798 (httpd) score 21 or sacrifice child
Feb 10 04:30:29 ssiscirine kernel: Out of memory: Kill process 20800 (httpd) score 21 or sacrifice child
Feb 10 04:32:54 ssiscirine kernel: Out of memory: Kill process 21312 (httpd) score 21 or sacrifice child
Feb 10 04:34:05 ssiscirine kernel: Out of memory: Kill process 21994 (httpd) score 21 or sacrifice child
Feb 10 04:42:06 ssiscirine kernel: Out of memory: Kill process 22164 (httpd) score 21 or sacrifice child
夜中に大量のアクセスで1GBのスワップを食いつぶしているらしい。
 
カーネルがhttpdをkillしてもinitデーモンがすぐhttpdを起動するから特に問題ない(ログは消えてそうだが)。
そのうちの一つをよく見ると、
Feb 10 03:47:47 ssiscirine kernel: [ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
Feb 10 03:47:47 ssiscirine kernel: [  436]     0   436      665       31   0     -17         ****
Feb 10 03:47:47 ssiscirine kernel: [  911]     0   911      664       32   0     -17         ****
Feb 10 03:47:47 ssiscirine kernel: [  912]     0   912      664       32   0     -17         ****
Feb 10 03:47:47 ssiscirine kernel: [ 1736]     0  1736     3487       35   0     -17         ****
Feb 10 03:47:47 ssiscirine kernel: [ 1752]     0  1752     8884       81   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1804]    81  1804      800       34   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1814]     0  1814     2723       24   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1819]     0  1819     1142       24   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1826]    70  1826      773       34   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1827]    70  1827      773       15   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1837]     0  1837     1810       18   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1875]     0  1875      498       17   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1891]    68  1891     1539      116   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1892]     0  1892      939       19   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1920]     0  1920      958       19   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1929]    68  1929      869       22   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1952]     0  1952     4922      130   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1967]     0  1967     2113       23   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 1975]    38  1975     1277       32   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2020]     0  2020     1561       22   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2112]    27  2112    37491     1053   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2135]     0  2135      711       29   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2137]    97  2137      677       32   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2138]     0  2138      675       33   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2147]     0  2147     2162       16   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2148]     0  2148     2162        5   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2149]     0  2149     2162        5   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2150]     0  2150     2162        5   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2151]     0  2151     2162        5   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2227]     0  2227     3105       38   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2238]    89  2238     3164       50   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2251]     0  2251     1681       22   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2259]     0  2259      751       27   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2278]   498  2278     9284       79   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2315]     0  2315     1759       39   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2326]     0  2326      718       14   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2341]     0  2341      495       14   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2343]     0  2343      495       14   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2345]     0  2345      495       14   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2347]     0  2347      495       14   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2349]     0  2349      495       14   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 2449]     0  2449     5481       30   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [ 3750]     0  3750     8485       61   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [ 8549]     0  8549      495       22   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [25462]    48 25462     8485       44   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [24407]    48 24407    17062     1878   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [26759]    48 26759    16550     1493   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [26774]    48 26774    17318     1417   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [26782]    48 26782    16806     1697   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27261]    48 27261    16559     1394   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [30144]    48 30144    16550     1437   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [31367]    48 31367    16806     1313   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [31369]    48 31369    19622     1454   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [31370]    48 31370    16294     1287   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [31371]    48 31371    16563     1535   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [31374]    48 31374    16550     1363   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [32525]    48 32525    16550     1382   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [20797]    48 20797    17062     1310   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [20798]    48 20798    16550     1539   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [20800]    48 20800    16550      448   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [21312]    48 21312    16687     1500   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [21990]    48 21990    19626     1410   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [21993]    48 21993    16294     1386   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [21994]    48 21994    16550     1388   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [22164]    48 22164    16550     1316   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27243]     0 27243      716       32   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27318]     0 27318      740       35   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27323]     0 27323      741       36   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27324]     0 27324      630       22   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27331]     0 27331      497       15   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27438]    89 27438     3124       51   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27510]    48 27510    14384     1727   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27512]    48 27512    14760     1994   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27513]    48 27513    14397     1640   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27521]    48 27521    14760     2179   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27522]    48 27522    14760     1499   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27523]    48 27523    14760     1825   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27526]    48 27526    14760     1881   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27528]    48 27528    14760     1899   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27529]    48 27529    15014     1428   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27530]    48 27530    14760     1979   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27533]    48 27533    14760     1456   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27534]    48 27534    14760     1542   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27535]    48 27535    15014     1497   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27538]    48 27538    14760     1856   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27540]    48 27540    14760     1524   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27543]    48 27543    14760     1497   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27544]    48 27544    14760     1463   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27546]    48 27546    14760     1732   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27547]    48 27547    14760     1636   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27548]    48 27548    14760     2081   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27549]    48 27549    14760     1526   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27559]    48 27559    14760     2064   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27561]    48 27561    14760     2081   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27562]    48 27562    14760     1917   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27563]    48 27563    14760     1932   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27566]    48 27566    14769     2155   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27570]    48 27570    14760     2634   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27571]    48 27571    14760     3115   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27572]    48 27572    14769     2475   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27574]    48 27574    14769     2671   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27575]    48 27575    14760     2747   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27576]    48 27576    14633     3633   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27580]    48 27580    14760     3232   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27583]    48 27583    14633     3248   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27585]    48 27585    14760     3436   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27586]    48 27586    14760     3351   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27590]    48 27590     8741       53   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27591]     0 27591     1858       61   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27592]     0 27592     1858       47   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27595]     0 27595     1517       35   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27596]     0 27596     5664      186   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27597]    48 27597     8741      227   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27598]     0 27598     2815      642   0       0             0 ****
Feb 10 03:47:47 ssiscirine kernel: [27599]    48 27599     8741       79   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27600]    48 27600     8741       79   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27601]    48 27601     8741       63   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: [27606]    48 27606     8741       91   0       0             0 httpd
Feb 10 03:47:47 ssiscirine kernel: Out of memory: Kill process 31369 (httpd) score 27 or sacrifice child
。。。
同接数64件なんて、AMD E-350のVMwareの中のCentOS(1CPU:メモリ512MB)のヒトには酷な仕打ち。
でも、自分がブラウザで見ててもtopコマンドにhttpdが6くらい出るから、実質同接10でいっぱいなのかもしれない。
apacheの設定は変えてないから
MaxClients       256
のまま。
アクセスが集中するとclamdも耐えられないようなので、
メモリは512MBのままにして、スワップだけを4GBに増やしてみた。
そうなるとSSDの空きがキツイのでHDDへ移動、遅いから事前に4GB割り当てておいた。
JavaでWebサーバーを作ってたらこんな事態は想定外で復旧は大変だろうな。
IISはデフォの10アクセス制限なら死なないだろうけど、商用利用でアクセス枠広げたら、一気に逝くだろうな。



BASIC認証にmysqlを使ってみた(サンプル)

元ネタはココです。
モジュールが入ってなかった。

# yum -y install mod_auth_mysql
# service httpd restart

データベースとテーブルは、phpmyadminで適当に設定してみた。
どんなSQL(Create Table)かは、テーブルのエクスポート画面でエクスポート方法詳細出力を出力をテキストで表示するにして実行ボタンを押すと判る。

CREATE TABLE IF NOT EXISTS `member_info` (
`member_id` varchar(64) COLLATE utf8_bin NOT NULL,
`member_password` varchar(40) COLLATE utf8_bin NOT NULL COMMENT ‘sha1’,
PRIMARY KEY (`member_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;

レコードに素でパスワードを入れるのは気味が悪くなるのでSHA1でデコードしておく。

INSERT INTO `member_info`( `member_id`, `member_password`) VALUES (‘abcdef’,SHA1(‘123456’))

サンプル画面のディレクトリィに.htaccessを作る

<Files ~ “^\.(htaccess|htpasswd)$”>
deny from all
</Files>

# MySQLによる認証を有効に
AuthMySQLEnable On

# mysqldへの接続Socket
AuthMySQLSocket /var/lib/mysql/mysql.sock

# mysqldの場所
AuthMySQLHost localhost

# mysqldへの接続ユーザ
AuthMySQLUser  <接続ユーザ>

# mysqldへの接続パスワード
AuthMySQLPassword  <接続パスワード>

# 認証を行う情報が格納されたデータベース名
AuthMySQLDB  <データベース名>

# 認証を行う情報が格納されたテーブル名
AuthMySQLUserTable <テーブル名>

# 認証を行うユーザ名が格納されているカラム名
AuthMySQLNameField <IDのカラム名>

# 認証を行うパスワードが格納されているカラム名
AuthMySQLPasswordField <パスワードのカラム名>

# 認証を行うパスワードが格納されているカラムの暗号方式
AuthMySQLPwEncryption sha1

# パスワード無しのユーザからの接続を許可するかどうか
AuthMySQLNoPasswd Off

# 以下はBasic認証を行う場合のお約束事らしい。メッセージに日本語使うと文字化けするからやめといた方がいい。
AuthGroupFile /dev/null
AuthName “Enter your ID and password”
AuthType Basic
require valid-user

order deny,allow

後はサンプル画面を作ってアクセスしてみる。
多分、何か失敗している。apacheのエラーログを見ると
データベースやテーブルが無いとか色々出るだろう(多分.htaccessの設定ミス)
ついついaccessログも見てしまうが・・・botウゼーになってしまうので見ないほうがマシだ。
Safariユーザが意外に多いな・・・って、iPhone OS 5?画像多いのに。そうか画像を多くすればいいんだな。
もし、ベーシック認証の画面がポップしないでサンプルが開くなら、.htaccess自体を読んでいない証拠だ。
初期設定のhttpd.confで/var/www/html設定箇所でAllowOverride ALLに直すか
サンプルを作ったディレクトリィ用の設定を/etc/httpd/conf.dに追加、
<test.conf>

<Directory /var/www/sample/>
Order Deny,Allow
Deny from All Allow from 127.0.0.1
Allow from ::1
# テスト用だからLAN内だけアクセス化
Allow from 192.168.1
# .htaccessを読むようにする
AllowOverride ALL
</Directory>

そしてapacheに設定を読み込ませて

# service httpd reload

みるしかないだろう。
ああ、勿論ここで作ったサンプルは外から見れないようになっている。



仮想化導入のジレンマ(て云うか無謀なだけ)

かえって複雑化したIT環境の運用管理

(1) 物理環境と仮想環境が混在していて、個別に管理しなければならない
(2) 仮想マシンを柔軟に増やしていった結果、管理対象が膨大に…
(3) 1つの変更がシステムのどこまで影響を与えるか判断しづらくなった
なパターンが多いらしい。

<原因1>

物理的な環境と仮想的な環境では、管理するツールが違うので、それそれで出来ること と 出来ないことがある。
だが、そんなことに関係なくユーザは要望するものだ。

<原因2>

仮想化導入でハードウェアの購入の稟議を出さなくてもサーバを増やせるので、常時CPU400%とかはよく起こる。

<原因3>

WindowsServerやVMwareのバージョンアップをすることで、うまく動き出すシステムもあれば不意に落ちるシステムもでるし、高額なアプリケーションほどバージョンアップでインスールできなくなる傾向が高く、ライセンス・コントロールのベンダーは要注意だ。対策が遅れるほど儲かる仕組みが確立しているからだ。
また社内LAN直結のままなら、LANのセグメントを分けようが、ゲートウェイを細かく設定しようが、ログイン認証済みの手元のパソコンのIPアドレスを複数設定すれば繋がってしまうセキュリティ上のブラックホールは消えない。
 

<根本的な原因>

管理の物量の怖さが判らない中間管理職の存在
IT化したり、Web化したり、SaaSを利用したり、アウトソーイングしたりと、
無能な中間管理職に何を与えてもルーズな管理しかできないから、
普段支障が無い分、一度何かが起きれば被害甚大になるのは仕方がない。
何をやっても起きることだ。
 

<対策1>

統合運用管理を導入することで、操作の統一などを行えばトラブルは減る。
だが、減るだけだ。
 

<対策2>

無能な中間管理職がいるうちは、アマゾンクラウドやMSのプライベート・クラウドなど外部にサーバを置いた方がマシだろう。
使った物量請求書が経理に回るからだ。
 



販促的アクセス制限

2CH板がなかなか開けないJCOMのアクセス制限かと思ったが、
ウィルスセキュリティZEROを無効にするとサクサクなった。
一旦無効で接続してしまえば有効に戻してもサクサクのまま。
高速化ツールを買っていない嫌がらせ営業の様だ。
 



SPAM

スパムもストマも似たようなもんだけど。
今日はドイツの同じIPからまとめてスパムがやってきた。
アカウントやらURLはバラバラだけどね。
共通点は new york giants と new england patriots アメフトの対戦試合のタイトルだ。
ブログには一本調子の熱い長文だが内容は少しちがうだけ。
何かのテストなのか。ワーム調査なのか。
やはり、ストマなのか。
 




top