首页 > 代码库 > rpm安装apache服务器
rpm安装apache服务器
<VirtualHost *:80>
DocumentRoot /var/www/www1
ServerName www1.extmail.org
</VirtualHost>
<Directory "/var/www/www1">
Allowoverride None
Options None
Order allow,deny
Allow from 192.168.121.2
</Directory>
<Directory "/var/www/www2/">
Options Indexes FollowSymLinks
AllowOverride NOne
Order allow,deny
Allow from all
AuthName www2Auth
AuthType Basic
AuthUserFile /etc/httpd/userauth
Require valid-user
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/www2
ServerName www2.extmail.org
</VirtualHost>
启动httpd
加密
创建/var/www/www1 /var/www/www2
htpasswd -c /etc/httpd/userauth www
service httpd restart
#配置文件在/etc/httpd/conf/httpd.conf
本文出自 “凌宇的技术博客” 博客,请务必保留此出处http://lampit.blog.51cto.com/12958178/1931002
rpm安装apache服务器