Chapter 11. apache の設定

Warning

fml8 CGI の内部構造については the Section called メソッド in Chapter 37 を参照して下さい。

apache で suexec を使う

suexec 利用可能な apache を作る必要があります。 configure を実行する際に、

(apache 1.x の場合)
configure --enable-suexec --suexec-caller=www
などとします。 ここでは suexec を呼ことが可能なユーザが www です。 このユーザには、この用途専用のものを用意して下さい。

インストール後、~ユーザ/cgi-bin/ を許すように httpd.conf を 変更する必要があります。

設定例:

<Directory /home/*/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from 特定のホスト
    </Limit>
</Directory>

<IfModule mod_mime.c>
	... 略 ...

   AddHandler cgi-script .cgi

	... 略 ...
</IfModule>

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml-devel/.
fml 4.0 project homepage is www.fml.org/fml/menu.ja.html.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.