1->設定第二個網頁伺服器 /etc/httpd/conf.d/ssl.conf
第18行 Listen 10.1.37.2:443
第77行 改成 DocumentRoot "/var/www/https" (加密網站的資料夾)
第86行 加入敘述
<Directory /home/Web37-2/public_html> Web37-2的網頁根目錄
AuthType basic 身分驗證和密碼授權
AuthName "Web37-2 only" 客戶端輸入密碼的畫面提示語
AuthUserFile /etc/httpd/conf/passuser 帳號密碼存放在此
Require valid-user 需要具有帳號密碼的使用者
Deny from all 拒絕所有人進入
Allow from 200.100.37.1 允許PC2 ip位址 : 200.100.37.1進入
Order deny,allow 先拒絕再允許
</Directory>