Apache

来自牛奶河Wiki
阿奔讨论 | 贡献2024年5月10日 (五) 13:34的版本 (创建页面,内容为“Centos7 系统自带的 Apache 安装 yum install httpd systemctl start httpd # systemctl enable httpd === 配置 === vi /etc/httpd/conf/httpd.conf Alias /dev "/u01/Dev" <Directory "/u01/Dev"> Options Indexes MultiViews FollowSymLinks IndexOptions +Charset=utf-8 Allow from all Order allow,deny AllowOverride All Require all granted </Directory> === Error === ==== AH00686: cannot read directory for multi ==== SELinux 未关…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

Centos7 系统自带的 Apache 安装

yum install httpd
systemctl start httpd
# systemctl enable httpd

配置

vi /etc/httpd/conf/httpd.conf
Alias /dev "/u01/Dev"
<Directory "/u01/Dev">
    Options Indexes MultiViews FollowSymLinks
    IndexOptions +Charset=utf-8
    Allow from all
    Order allow,deny
    AllowOverride All
    Require all granted
</Directory>

Error

AH00686: cannot read directory for multi

SELinux 未关闭造成

chown -R www-data:www-data $PATH
-.OR.-
setenforce 0