webページの認証について .htaccessと.htpasswdを編集する .htpasswd su - htpasswd -c /etc/httpd/conf/.htpasswd hogehoge # パスワードを2回求められるので入力 cat /etc/httpd/conf/.htpasswd hogehoge:xxxxxxxxxxxxxx # 暗号化されているこれで.htpasswdの用意終わり .htaccess cd [公開したいファイルのあるディレクトリ] vim .htaccess # 以下の内容を書く Options +ExecCGI AddHandler cgi-script .cgi .py htpasswd AddType application/x-httpd-php .php .html AuthUserFile /etc/httpd/conf/.htpassw