zoukankan      html  css  js  c++  java
  • wampserver 本地虚拟主机配置

    1、打开Apache配置文件httpd.conf

    2、启用httpd-vhosts.conf(去掉Include conf/extra/httpd-vhosts.conf前面的注释)

    3、然后编辑httpd-vhosts.conf(在D:wampinapacheApache2.2.21confextra)

    4、配置虚拟主机

    <VirtualHost *:80>
        DocumentRoot "D:/wamp/www/weibo/weibo"           #网站目录,如果在www目录下的php目录,下面就填写F:/www/php
        ServerName myweibo.com                    #域名
        DirectoryIndex index.html index.htm index.php      #默认主页
        <Directory />
        Options FollowSymLinks
        AllowOverride None                      #不允许别人修改我们的页面
        order allow,deny                      #设置访问权限
        Allow from all
        </Directory>
    </VirtualHost>

    5、修改本机C:WindowsSystem32driversetchosts文件,添加

    127.0.0.1   myweibo.com
    
  • 相关阅读:
    IO多路复用
    事件驱动模型
    协程
    进程
    py2与py3的编码问题
    Linux Centos7 网卡无法启动
    监控的法则
    如何优雅的采集activeMQ性能指标
    一分钟性能分析
    beta版 tomcat 应用监控指标
  • 原文地址:https://www.cnblogs.com/Tongjanghu/p/4152484.html
Copyright © 2011-2022 走看看