Apache:修订间差异
跳到导航
跳到搜索
(创建页面,内容为“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 未关…”) |
无编辑摘要 |
||
第23行: | 第23行: | ||
-.OR.- | -.OR.- | ||
setenforce 0 | setenforce 0 | ||
[[分类:Develop]] | |||
[[分类:Web]] |
2024年5月10日 (五) 13:35的最新版本
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