Webfs
ナビゲーションに移動
検索に移動
Webfs は静的コンテンツ用のシンプルな http サーバーです。
インストール
webfs パッケージをインストールしてください。
設定
設定ファイルは /etc/conf.d/webfsd です。ウェブブラウザで読めるようにするには index.html ファイルを作成して、設定ファイルで index.html の場所を指定する必要があります。
systemctl を使って webfsd.service を起動・有効化してください。
以下は組み込みの Linux 環境にプログラムをダウンロードするときに使用する、ローカルネットワークサーバーの設定例です:
/etc/conf.d/webfsd
WEBFSD_ARGS="-p 80 -u nobody -R /home/jeff/www -f index.html"
index.html は以下のように作成します:
<!DOCTYPE HTML>
<html>
<head>
<title>Downloads</title>
</head>
<body>
<h1>Local network File Server</h1>
<table>
<tr>
<th></th>
<th><a href="./">Program</a></th>
<th><a href="?C=M;O=A"></a></th>
<th><a href="?C=S;O=A"></a></th>
<th><a href="?C=D;O=A"></a></th>
</tr>
<tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"></td><td><a href="flash_erase">flash_erase</a></td></tr>
<tr><td valign="top"></td><td><a href="fw_printenv">fw_printenv</a></td></tr>
<tr><td valign="top"></td><td><a href="fw_setenv">fw_setenv</a></td></tr>
<tr><td valign="top"></td><td><a href="nanddump">nanddump</a></td></tr>
<tr><td valign="top"></td><td><a href="nandwrite">nandwrite</a></td></tr>
<tr><th colspan="5"><hr></th></tr>
</table>
<address>webfs 1.21-12 (Arch) Server 192.168.2.2 Port 80</address>
</body>
</html>
参照
man webfsd