
| usb -ioを外出先からブラウザで操作できるようにしました。しかし本格的に活用するためにはセキュリティー 問題から特定ユーザーのみアクセスできるようにパスワード付きのページで操作できるようにする必要があります。 |
| # cd /etc/httpd/conf # cp httpd.conf httpd.conf.ori 末尾に設定を追加します。 # vi httpd.conf -------------------------------------------- <Directory /home/web/public_html/USBIO-AN> AuthName "This directory require user authentication." AuthType Basic Require valid-user AuthUserFile /etc/httpd/conf/pwd-file AuthGroupFile /dev/null </Directory> --------------------------------------------- # cd /home/web/public_html/ # mkdir USBIO-AN # chown apache:apache USBIO-AN # cd /etc/httpd/conf # htpasswd -c pwdfile hoge <パスワード入力> <パスワード再入力> # chown apache:apache pwdfile # /sbin/service httpd restart |
| これでUSBIO-ANの下にあるページにはユーザー名とパスワードなしでは見る事ができません。 更に安全をはかるためにはSSLの暗号化をすれば良いでしょう。 |