zoukankan      html  css  js  c++  java
  • 阿帕奇配置本地虚拟站点,XAMPP环境下

    首先利用XAMPP搭建的阿帕奇环境,必须得启动,不能启动的话www.baidu.com

     在XAMPP的目录下的apache,打开httpd-vhosts.conf文件

    E:XAMPPapacheconfextra

    在最后加上这个

    80就是监听的端口

    ServerName 就是本地的域名
    DocumentRoot就是文件的环境
    切记是这种目录的斜杠
    Directory 也要改
     
    <VirtualHost *:80>
    
     ServerName ymh.com
    
     DocumentRoot "E:XAMPPhtdocsjianshufabupublic"
    
    <Directory "E:XAMPPhtdocsjianshufabupublic"> 
    
     Options FollowSymLinks IncludesNOEXEC Indexes
    
     DirectoryIndex index.php index.html index.htm 
    
     AllowOverride all 
    
     Order Deny,Allow 
    
     Allow from all 
    
     Require all granted
    
    </Directory>
    
    </VirtualHost>

    然后打开

    C:WindowsSystem32driversetc

    打开host文件

    在最后加上这一句话


    127.0.0.1 ymh.com

     然后重启阿帕奇OK!

  • 相关阅读:
    视图
    触发器
    DNS
    DHCP
    SSH 详解
    apt-get
    java split
    数组指针 指针数组
    函数指针
    网络协议
  • 原文地址:https://www.cnblogs.com/wlphp/p/8448781.html
Copyright © 2011-2022 走看看