• windows下面虚拟主机


    1. wondows xp + apmserv 5.2.6 端口8088

    2.httpd.config文件

      1. ServerRoot       "D:/APMServ/APMServ5.2.6/Apache"  

        Listen          8088 

        ServerName     127.0.0.1:8088

        DocumentRoot   "D:/APMServ/APMServ5.2.6/www/"

        (原文未变)

      2.要么将几台<virtualhost>标签全放在 D:APMServAPMServ5.2.6Apacheconfapmservvhost.conf 文件中(谁在前谁是默认的虚拟主机)

        被httpd.config包含 ,要么将他们全部写在httpd.config中 (若有更多台虚拟主机可按原样改动后添加)

    NameVirtualHost *:8088
    <VirtualHost *:8088>
     ServerName www.test.com
     ServerAlias *.test.com
     DocumentRoot "D:/APMServ/APMServ5.2.6/www/test"
    <Directory "D:/APMServ/APMServ5.2.6/www/test"> 
     Options FollowSymLinks IncludesNOEXEC Indexes
     DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
     AllowOverride None 
     Order Deny,Allow 
     Allow from all 
    </Directory>
    </VirtualHost>
    
    NameVirtualHost *:8088
    <VirtualHost *:8088>
     ServerName www.testone.com
     ServerAlias *.testone.com
     DocumentRoot "D:/APMServ/APMServ5.2.6/www/testone"
    <Directory "D:/APMServ/APMServ5.2.6/www/testone"> 
     Options FollowSymLinks IncludesNOEXEC Indexes
     DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
     AllowOverride None 
     Order Deny,Allow 
     Allow from all 
    </Directory>
    </VirtualHost>
    

    3.C:WINDOWSsystem32driversetchosts 文件用文本编辑器打开添加下边内容(若有更多台虚拟主机可按原样改动后添加)

        127.0.0.1 localhost
        127.0.0.1 testone.com
        127.0.0.1 www.testone.com
        127.0.0.1 testtwo.com
        127.0.0.1 www.testtwo.com

    4.本机打开任意浏览器 输入URL www.test.com 或者 www.testone.com 会显示出 D:/APMServ/APMServ5.2.6/www/test 或者 "D:/APMServ/APMServ5.2.6/www/testone 中的  默认页(index.php 或index.html……)

  • 相关阅读:
    sp_trace_setfilter sqlserver筛选跟踪或跟踪过滤
    sp_trace_setevent sqlserver跟踪事件及列
    通过导入虚拟电脑的方式还原centos
    sqlserver profiler 抓出来作业的代码 SQLAgent
    克隆server2008R2造成SID冲突
    sqlserver ssms ctrl+e快捷键问题
    Caffe源码解析1:Blob
    梯度下降、随机梯度下降和批量梯度下降
    Caffe CNN特征可视化
    Caffe 抽取CNN网络特征 Python
  • 原文地址:https://www.cnblogs.com/hllnj2008/p/4073748.html
Copyright © 2020-2023  润新知