千家信息网

rpm安装apache服务器

发表于:2025-02-14 作者:千家信息网编辑
千家信息网最后更新 2025年02月14日,DocumentRoot /var/www/www1ServerName www1.extmail.orgAllowoverride NoneOptions NoneOrder allow,denyA
千家信息网最后更新 2025年02月14日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

0