コンテンツにスキップ

「Webfs」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
ページの作成:「Category:ウェブサーバー en:Webfs [http://linux.bytesex.org/misc/webfs.html Webfs] は静的コンテンツ用のシンプルな http サーバーです。...」
 
設定: HTMLの修正
 
18行目: 18行目:
<!DOCTYPE HTML>
<!DOCTYPE HTML>
<html>
<html>
<head>
<head>
<title>Downloads</title>
<title>Downloads</title>
</head>
</head>
<body>
<body>
<h>Local network File Server</h>
<h1>Local network File Server</h1>
<table><tr><th></th>
<table>
<tr>
<th><a href="./">Program</a></th>
<th><a href="?C=M;O=A"></a></th>
<th></th>
<th><a href="?C=S;O=A"></a></th>
<th><a href="./">Program</a></th>
<th><a href="?C=D;O=A"></a></th></tr>
<th><a href="?C=M;O=A"></a></th>
<tr><th colspan="5"><hr></th></tr>
<th><a href="?C=S;O=A"></a></th>
<tr><td valign="top"></td><td><a href="flash_erase">flash_erase</a>
<th><a href="?C=D;O=A"></a></th>
</tr>
<tr><td valign="top"></td><td><a href="fw_printenv">fw_printenv</a>
<tr><td valign="top"></td><td><a href="fw_setenv">fw_setenv</a>
<tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"></td><td><a href="nanddump">nanddump</a>
<tr><td valign="top"></td><td><a href="flash_erase">flash_erase</a></td></tr>
<tr><td valign="top"></td><td><a href="nandwrite">nandwrite</a>
<tr><td valign="top"></td><td><a href="fw_printenv">fw_printenv</a></td></tr>
<tr><th colspan="5"><hr></th></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>
</table>
<tr><td valign="top"></td><td><a href="nandwrite">nandwrite</a></td></tr>
<address>webfs 1.21-12 (Arch) Server 192.168.2.2 Port 80</address>
<tr><th colspan="5"><hr></th></tr>
</body></html></nowiki>}}
</table>
<address>webfs 1.21-12 (Arch) Server 192.168.2.2 Port 80</address>
</body>
</html>
</nowiki>}}


== 参照 ==
== 参照 ==

2016年12月8日 (木) 20:51時点における最新版

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