?????????
????1???????????????Options
?????????????
????Indexes?????????????????“?????”??
????MultiViews?????????????????????Э???????????
????All?????????MultiViews????????????
????ExecCGI?????????????????????????CGI?????
????FollowSymLinks????????????????????????÷????????
????2??.htaccess???
???????????.htaccess?????????????????????????????
????AccessFileName  .htaccess
???????ò???AllowOverride???????.htaccess??????????????????All??None??Options??FileInfo??AuthConfig??Limit?????????????AllowOverride?????“None”????????.htaccess???????AllowOverride?????All???.htaccess???????????κ?????????á?
????3?????÷??????
???????Order????????????????
?????????????????????????п??????????
????Order  allow??deny
????Allow  from  all
???????????????????????192.168.99.0/24?????????????IP????192.168.99.254????????????
????Order  allow??deny
????Allow from  192.168.99.0/24
????Deny from  192.168.99.254
????????????????????????????????????????????
????3. ??????????
???????Alias????????????????磬????“/icons/”?????????????????????·???“/var/www/icons/”??
????Alias  /icons/  “/var/www/icons/”
????4. ??????
???????磬????????myweb????????????????????·????“/usr/local/myweb”??????????????????????????????Tonyguo??Wayne?????
????1??????????????????????????
????Alias /myweb/ “/usr/local/myweb/”
????<Directory  “/usr/local/myweb/”>
????Options  none
????AllowOverride  None
????Order  allow??deny
????Allow  from  all
????AuthType Basic
????AuthName “Please Login: ”
????AuthUserFile/usr/local/apache/bin/mywebpwd
????Require User Tongguo wayne
????</Directory>
????2) ????????????????????????
????/usr/local/apache/bin/htpasswd –c /usr/local/apache/bin/mywebpwd Tonyguo
????-c??????????????????????????????????д???????????????????????????wayne????????-c???
????3??????
?????????????????http://192.168.99.9/myweb?????????????????
????????????????????????????????
????????????????????
????1. ???????IP??????????
????1??IP??????????????????????????????
???????????192.168.99.9????????????80??8080?????????????? ??????????????????/usr/local/apache/htdocs/web1??/usr/local/apache/htdocs/web2??
Listen 80
Listen 8080
<VirtualHost  192.168.99.9:80>
ServerSignature  email
DocumentRoot  /usr/local/apache/htdocs/web1
DirectoryIndex  index.html  index.htm
LogLevel  warm
HostNameLookups  off
</VirtualHost>
<VirtualHost  192.168.99.9:8080>
ServerSignature  email
DocumentRoot  /usr/local/apache/htdocs/web2
DirectoryIndex  index.html  index.htm
LogLevel  warm
HostNameLookups  off
</VirtualHost>