zoukankan      html  css  js  c++  java
  • wampserver配置本地测试环境_虚拟主机实现多站点

    查了好多资料,整了一个晚上,无语啊,国人的网站采集实在强大,网上介绍APACHE配置虚拟主机方法,文章居然到处都是采集的,就连错误都是一样的,不知道该说些什么,已经遇到好多次这样了~~ 我的系统环境,Windows Server 2003,WAMPServer v2.0 Apache 2.2 以2个域名www.bennyxu.com,www.duoguli.com为例 Apache2.2.21\conf\httpd.conf 开启支持rewrite module #LoadModule rewrite_module modules/mod_rewrite.so =>LoadModule rewrite_module modules/mod_rewrite.so #Include conf/extra/httpd-vhosts.conf =>Include conf/extra/httpd-vhosts.conf Options FollowSymLinks AllowOverride None # =====> AllowOverride All # Order deny,allow Deny from all Satisfy all php.ini short_open_tag = Off ====> short_open_tag = On 3. 在托盘中左键单击wampserver,重启所有服务; 4. 用记事本打开C:WINDOWSsystem32driversetc 目录下hosts文件,在最下面添加一行: 127.0.0.1 www.duoguli.com 127.0.0.1 www.bennyxu.com 以上方法参考综合网上的介绍,经过偶验证,实现本地测试环境单IP多域名多站点的功能。
  • 相关阅读:
    QGIS 编译
    Ubuntu: 无法使用su命令
    win7 与 Ubuntu 16.04 文件传送
    OSGEarth编译
    GADL配置编译
    C++ 类对象和 指针的区别
    C++ Primer Plus 第六版笔记
    Windows下使用doxygen阅读和分析C/C++代码
    _MSC_VER详细介绍
    LUA学习之一 初次接触
  • 原文地址:https://www.cnblogs.com/AS30/p/3113262.html
Copyright © 2011-2022 走看看