zoukankan      html  css  js  c++  java
  • Apache虚拟主机(三)

      一、启用 httpd-vhosts.conf
      在httpd.conf文件中启用
      在文件中搜索:Virtual hosts

      #Virtual hosts虚拟主机
      Include conf/extra/httpd-vhosts.conf

      二、在httpd-vhosts.conf做配置

     1   <VirtualHost 127.0.0.1:80>
     2   DocumentRoot "d:/myweb" 3   #这里配置欢迎页面
     4   DirectoryIndex my.html index.html index.htm index.php
     5     <Directory />
     6     Options FollowSymLinks
     7     #不许可别人修改我们的页面
     8     AllowOverride None
     9     #设置访问权限
    10     Order allow,deny
    11     Allow from all
    12     </Directory>
    13   </VirtualHost>

    3、apache在默认情况下是不会处理php文件,只能处理html文件。

  • 相关阅读:
    php算法之选择排序
    php算法之插入排序
    五分钟读懂UML类图
    ZC_知识点
    JNI_C#
    JNI_Z
    20160419__第1课_第6课
    Hibernate异常_01
    ZC_注意点
    ZC_知识点
  • 原文地址:https://www.cnblogs.com/luyuwei/p/3636746.html
Copyright © 2011-2022 走看看