linux httpd.conf详解

By 肖奈
2017-08-20
2688 read

配置httpd,将服务器名称替换为您自己的环境
[[email protected] ~]# vi /etc/httpd/conf/httpd.conf
# line 86: 改变管理员的邮箱地址
ServerAdmin [email protected]
# line 95: 改变域名信息
ServerName www.linuxprobe.org:80
# line 151: none变成All
AllowOverride All
# line 164: 添加只能使用目录名称访问的文件名
DirectoryIndex index.html index.cgi index.php
# add follows to the end
# server's response header(安全性)
ServerTokens Prod
# keepalive is ON
KeepAlive On
[[email protected] ~]# systemctl start httpd
[[email protected] ~]# systemctl enable httpd
[3] 如果Firewalld正在运行,请允许HTTP服务。,HTTP使用80 / TCP
[[email protected] ~]# firewall-cmd --add-service=http --permanent
success
[[email protected] ~]# firewall-cmd --reload
success

【Linux】CentOS7 常用命令集合
CentOS7 yum安装Apache(httpd)并实现多域名配置

Comments

暂无评论,还不快来坐沙发...

Leave a Reply