Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?

メジャーなWebサーバではBasic認証が使えるが、なんとなく弱いことは知っていた。 その挙動を勉強するためWiresharkを使って実験してみた。 サーバ情報 クライアント:192.168.0.2 サーバ:192.168.0.5 アカウント:admin/admin 実験 1.リクエスト この時、クライアントは認証ありのページなのか、認証なしのページなのか知らないので、通常のリクエストを送る。 2.401認証エラー basic認証ありのページだということをクライアントに知らせるため、401を返す。 HTTPヘッダ内の 『WWW-Authenticate: Basic realm="Secret Zone"\r\n』 がBasic認証だということを表している。 realmはサーバ側で設定した認証が必要なエリアの名前。 3.アカウント情報の入力 HTTPヘッダ内の『Authorization:
Basically my scenario is that I have an internal website that requires a SINGLE hard-coded username and password to access (and this can't be turned off, only changed). I am exposing this website through a reverse proxy for various reasons (hiding the port, simplifying url, simplifying NAT, etc). However, what I would like to do is be able to use Apache to handle the authentication so that: I don'
Webページへのアクセスにユーザー名とパスワードによるアクセス制限をかける。 ここでは、https://centossrv.com/secret/以下のWebページへユーザー名(centosとする)とパスワード(centospassとする)によるアクセス制限をかけるようにする。 なお、htpasswdによるユーザー名、パスワード情報はほぼ平文でネットワーク上を流れるため、盗聴に備えてSSL経由でしかアクセスできないようにする。 ※Webサーバー、Webサーバー間通信内容暗号化が導入済であること [root@centos ~]# vi /etc/httpd/conf/httpd.conf ← Webサーバー設定ファイル編集 <Directory "/var/www/html"> # # Possible values for the Options directive are "None",
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く