rpm安装apache服务器
DocumentRoot /var/www/www1
ServerName www1.extmail.org
Allowoverride None
Options None
Order allow,deny
Allow from 192.168.121.2
Options Indexes FollowSymLinks
AllowOverride NOne
Order allow,deny
Allow from all
AuthName www2Auth
AuthType Basic
AuthUserFile /etc/httpd/userauth
Require valid-user
DocumentRoot /var/www/www2
ServerName www2.extmail.org
启动httpd
加密
创建/var/www/www1 /var/www/www2
htpasswd -c /etc/httpd/userauth www
service httpd restart
#配置文件在/etc/httpd/conf/httpd.conf
页:
[1]