內部使用的小web工具, 開放到網絡上。 僅1~2我的用,沒有必要再開發一套身份認證體系。php
centos+nginxhtml
htpasswd -b -c /www/data/dev/mypass.db admin 123456
location / { index index.html index.php; auth_basic ""; auth_basic_user_file /www/data/dev/mypass.db; }