htaccessによるBASIC認証の利用方法 印刷

  • 0

htaccessによるBASIC認証をご利用頂くには下記階層に「.htaccess」と「.htpasswd」を作成して頂く必要がございます。

 

「.htpasswd」の内部に記述する内容はお客様でご準備頂く必要がございます。

 

```
/domains/ドメイン名/public_html/.htaccess

/domains/ドメイン名/public_html/.htpasswd
```

 

.htaccess

```
# authenticate(Basic)
AuthUserFile /home/アカウント名/domains/ドメイン名/public_html/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
```

 

.htpasswd

```
test:$apr1$kMg8Ll86$IwgEonMkYoncIgTqRGhOe1
```


この回答はお役に立ちましたか?

« 戻る