????????????????????????????

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    #DocumentRoot /var/www
    DocumentRoot /srv/tftp
    <Directory />
    Options FollowSymLinks Indexes
    AllowOverride All
    <limit GET POST OPTIONS PROPFIND>
    Order allow??deny
    Allow from all
    </Limit>
    </Directory>
    #<Directory /var/www/>
    #<Directory /var/www/>
    #Options Indexes FollowSymLinks MultiViews
    #AllowOverride None
    #Order allow??deny
    #allow from all
    #</Directory>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow??deny
    Allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug?? info?? notice?? warn?? error?? crit??
    # alert?? emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>

???????vi?????/srv/tftp/.htaccess??????????????£?

root@AkBirdofpreyWorkStation:/# vi /srv/tftp/.htaccess

??????????????£?

????AuthUserFile /etc/secure.user  ##???????????????

????AuthName akcwdCA   ???????????????

????AuthType Basic

    <Limit GET>
    require valid-user
    </Limit>

???????htpasswd -c /etc/secure.user?????????????????????????£?

root@AkBirdofpreyWorkStation:/# htpasswd -c /etc/secure.user user1

????????????????????????????????????????????????????user1???????????????????

???????????/etc/init.d/apache2 restart????apache?????????????????£?

    root@AkBirdofpreyWorkStation:/# /etc/init.d/apache2 restart
    [....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name?? using 192.168.1.253 for ServerName
    ... waiting .apache2: Could not reliably determine the server's fully qualified domain name?? using 192.168.1.253 for ServerName
    . ok