• 关于PHP wamp 配置虚拟路径的简短描述


    本机设置两个虚拟路径分别为  www.test.com    www.mydome.com

    首先要配置下Apache配置文件 httpd-vhosts.conf

    # Virtual Hosts
    #

    <VirtualHost *:80>
    ServerName www.test.com
    ServerAlias www.test.com
    DocumentRoot H:/wamp/www/test
    <Directory "H:/wamp/www/test/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
    </Directory>
    </VirtualHost>


    <VirtualHost *:80>
    ServerName www.mydome.com
    ServerAlias www.mydome.com
    DocumentRoot H:/wamp/www/mydome
    <Directory "H:/wamp/www/mydome/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
    </Directory>
    </VirtualHost>
    #

    其次设置C:->windows->system32->drivers->etc->hosts文件

    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    127.0.0.2 www.test.com
    127.0.0.3 www.mydome.com

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost

  • 相关阅读:
    POJ 1325 Machine Schedule(待整理)
    URAL 1109 Conference
    结构体排序初始化最傻最傻的错误
    Radar Installation
    关于Eclipse中插件的安装和文件导出
    贪心算法概述
    今年暑假不AC(水题)
    100197C
    100722C
    树状数组
  • 原文地址:https://www.cnblogs.com/lucky2017/p/7808793.html
Copyright © 2020-2023  润新知