?????????
????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>