xiaobiaomei

创建虚拟主机

版本:2.2

步骤一:查看apache安装目录
find / -name httpd.conf

步骤二:创建文件夹extra/httpd-vhosts.conf,并引入
<VirtualHost *:80>
    ServerName www.1223.net
    DocumentRoot "/var/www/html/public"
    <Directory  "/var/www/html/public">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

步骤三:重启 service httpd restart

 

分类:

技术点:

相关文章:

  • 2021-12-12
  • 2021-11-27
  • 2022-02-06
  • 2022-02-02
  • 2022-02-08
  • 2021-12-26
  • 2022-01-31
  • 2022-01-02
猜你喜欢
  • 2021-12-15
  • 2022-01-05
  • 2021-12-06
  • 2021-11-22
  • 2021-11-25
  • 2021-12-09
  • 2022-02-11
相关资源
相似解决方案