1
我有兩個域example.com
和example2.com
。這兩個域指向同一臺服務器,我想啓用http驗證example2.com
訪問者只有。我怎樣才能做到這一點?特定域的HTTP基本認證
這裏是我當前的代碼,並從所有參觀者詢問用戶名/密碼:
Authtype Basic
AuthName "Require Authentication for Example2.com"
AuthUserFile /var/www/vhosts/<hostname>/httpdocs/<passwd file>
Require valid-user