hns - 日記自動生成システム - Version 2.19.9

先月 2004年01月 来月
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 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2004年01月25日() 旧暦 [n年日記]

#1 [NetBSD][pkgsrc] pkgsrc/www/apache2 (2.048)

make: "/export/pkgsrc/devel/apr/Makefile" line 41: Malformed conditional (${APR_USE_DB4} == "YES")
sudo echo APR_USE_DB4=NO >> /etc/mk.conf
これって sudo の意味でうまく行かない。
APR_USE_DB4=NO
の行を加えておく
===> Installing configuration/support files for apache-2.0.48nb2

        /usr/pkg/etc/httpd/httpd.conf already exists, example file is
           /usr/pkg/share/examples/httpd/httpd-std.conf
        /usr/pkg/etc/httpd/ssl.conf
        /usr/pkg/sbin/envvars
        /usr/pkg/etc/httpd/magic
        /usr/pkg/etc/httpd/mime.types
===========================================================================

The following files should be created for apache-2.0.48nb2:

        /etc/rc.d/apache (m=0755)

===========================================================================

===========================================================================
You may wish to customize the following files for apache-2.0.48nb2:

        /usr/pkg/etc/httpd/httpd.conf
        /usr/pkg/etc/httpd/ssl.conf
===========================================================================
===> Registering installation for apache-2.0.48nb2
Full pathname symlink `/usr/pkg/libexec/apr/libtool' is target of 
   `/usr/pkg/share/httpd/build/libtool' 
   - adjusting to `../../../libexec/apr/libtool'
apache-2.0.48nb2 requires installed package apr-0.9.5.2.0.48nb1
apache-2.0.48nb2 requires installed package expat-1.95.6nb1
apache-2.0.48nb2 requires installed package openssl-0.9.6l
apache-2.0.48nb2 requires installed package perl-5.6.1nb7
ttyp6:makoto@serv  21:09:45/040125(...www/apache2)> \
      sudo /usr/pkg/etc/rc.d/apache start
Password:
Starting apache.
ttyp6:makoto@serv  21:10:59/040125(...www/apache2)> 
多分、ちょっと、やりたいこととは違う。

/usr/pkg/etc/httpd/*.conf:

ttyp5:makoto@serv  21:17:48/040125(...etc/httpd)> ls -l
total 380
-rw-r--r--  1 root  wheel  38441 Jun 20  2003 httpd.conf
-rw-r--r--  1 root  wheel  35736 Jun 20  2003 httpd.conf-2.044
-rw-r--r--  1 root  wheel  35755 Jan 25 21:09 httpd.conf-installed
-rw-r--r--  1 root  wheel  38439 Jun 20  2003 httpd.conf.bak
-rw-r--r--  1 root  wheel  12959 Jan 25 21:09 magic
-rw-r--r--  1 root  wheel  14979 Jan 25 21:09 mime.types
-rw-r--r--  1 root  wheel  11038 Jan 25 21:09 ssl.conf
ssl の短かさに ... 合併すればいいのかな。
#
# 追加モジュールの設定
#
<IfModule mod_ssl.c>
    Include conf/ssl.conf
</IfModule>
こういうことか。既に入っているのに、生かされていない ? 名前を変えると、ないとか言うから、本当に読んでいるらしい。
ktrace -t n kdump ktrace.out
とする方が正しいだろうが。
そうか startssl すれば良いのか。
ttyp5:makoto@serv  21:34:47/040125(...etc/httpd)> sudo /usr/pkg/etc/rc.d/apache startssl
/usr/pkg/etc/rc.d/apache: unknown directive 'startssl'.
Usage: /usr/pkg/etc/rc.d/apache [fast|force](start|stop|restart|rcvar|reload|status|poll)

鍵を作る:

2003/04/05 の日記 を見ると、「鍵を作っておく」必要があるらしい。この日記の他に、もっといい方法を一度教わった 気がするが....
ttyp5:makoto@serv 21:39:34/040125(/export/pkgsrc)> openssl genrsa -des3 -rand /var/log/messages -out serv 1024
11003 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
....++++++
.........................................++++++
e is 65537 (0x10001)
Enter PEM pass phrase:
Verifying password - Enter PEM pass phrase:
ttyp5:makoto@serv 21:50:27/040125(/export/pkgsrc)> ls -l serv
-rw-r--r-- 1 makoto wheel 951 Jan 25 21:50 serv
これでいいのかな。 ↑の説明はとっても分り易い。
その中で、次の行が多分一番大切
Common Name (eg, YOUR name) []:
というのも、閲覧側でCertificat の確認をする時に、その名前が表示されるから。
openssl genrsa -des3 -rand /var/log/messages -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -in server.csr -signkey server.key -out server.crt
[Sun Jan 25 22:01:06 2004] [error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
Apache/2.0.48 mod_ssl/2.0.48 (Pass Phrase Dialog)

NameVirtualHost:

httpd.conf の中にある
NameVirtualHost *

ssl.conf の中にある
<VirtualHost _default_:443>
がまざっていると良くないよ、と言っている。前の方を消す。
消さないで、次のようにすると、80 番の方では NameVirtualHost が出来る(らしい) NameVirtualHost *:80

UseCanonicalName:

それより次に書いてあることの方が興味がある。
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off
UseCanonicalName は、Apache が 自分の中を参照するような URL を構成する時に、 SERVER_NAME と SERVER_PORT をどうやって決めるかの方式を設定出来る。
Off の時には、閲覧側からの要求で決める。... 良く使われている NameVirtualHost 方式
On の時には、ServerName 指示子で決める。... 決め打ち ?
.. 関係なさそう。DNS の設定とかがいい加減でも動かしたいときに On にする ?

#2 [tcode] ひらがなの「ぺ」

.. 考えたら知っていた。「ぱぴぷぺぽ」は並んでいるから、
●                         ぺ = {ぺ}
・・・・      ・・・・
・・・○      ・・・・     ●…第1打鍵
・・・・      ・・・・     ○…第2打鍵



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)