RIGHT:[[フリーソフトウェアのコンパイル]]

http://www.webmin.com/

RHEL で確認要.

*インストール手順 [#va8cd68a]
 # rpm -Uvh usermin-1.130-1.noarch.rpm 

/etc/usermin 以下のファイルを編集していく.

config に以下を追加
 lang=ja_JP.euc


*apache でリバースプロキシ [#n900f495]
/etc/httpd/conf.d/usermin.conf を作成し,
 ProxyPass   /usermin/ http://localhost:20000/
 ProxyPassReverse    /usermin/ http://localhost:20000/
を書いてみたが,ダメだった.

で
http://lists.swelltech.com/pipermail/webmin-l-archive/2004-June/017928.html
を参考にして,
/etc/usermin/config に
 webprefix=/usermin
 webprefixnoredir=1
を追加してみる.

で,サーバを再起動して,O.K. 

だだし,各モジュールにアクセスする際に,
「外部サイトからリンクされている」といった警告メッセージが出て,
そのメッセージが二度と出ないようにしないと先に進めない.

その対策として
>To turn it off, go to Webmin Configuration -> Trusted
>Referers and add 'myserver' to the list of websites to trust.

とのことだが...

というわけで /etc/usermin/config に
 referer=1
を追加.

さらに,logout ボタンが無い.
どうも,環境変数 LOCAL_USER が渡るとだめみたい.
つまり,localhost からのアクセスの場合,
logout ボタンが出ないのかな.

なので強引に,
/usr/libexec/usermin/mscstyle3/theme.pl
の 265,267 行めの if 文
 if (!$ENV{'LOCAL_USER'}) {
と
 }
をコメントアウトした.

というか,/etc/httpd/conf.d/usermin.conf で
 ProxyPass   /usermin/ http://192.168.1.1:20000/
 ProxyPassReverse    /usermin/ http://192.168.1.1:20000/
としてやれば,O.K. になった.

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS