加入收藏 | 设为首页 | 会员中心 | 我要投稿 台州站长网 (https://www.0576zz.cn/)- 边缘计算、中间件、数据处理、数据分析、智能存储!
当前位置: 首页 > 综合聚焦 > CentOS > 正文

apache 多端口配置多站点(centos7)

发布时间:2020-09-01 15:46:09 所属栏目:CentOS 来源:互联网
导读:1.在配置文件httpd.conf(/etc/httpd/conf)中添加监听端口,如:Listen 8008 2.配置虚拟主机,如: ServerName test.com DocumentRoot /home/test/www DirectoryIndex index.php index.html AllowOverride all Require all granted 3.(注意防火墙)在iptables
<tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

ServerName test.com DocumentRoot "/home/test/www" DirectoryIndex index.php index.html AllowOverride all Require all granted 3.(注意防火墙)在iptables中打开添加端口通过 (/etc/sysconfig/iptables) 4. #systemctl restart httpd.service #systemctl restart iptables.service

(编辑:台州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

<table class="text">

    推荐文章
      热点阅读